Skip to content

refactor: use http_archive for the stdlib list#2037

Merged
aignas merged 1 commit intobazel-contrib:mainfrom
sitaktif:http-archive-for-stdlib-list
Jul 8, 2024
Merged

refactor: use http_archive for the stdlib list#2037
aignas merged 1 commit intobazel-contrib:mainfrom
sitaktif:http-archive-for-stdlib-list

Conversation

@sitaktif
Copy link
Copy Markdown
Contributor

@sitaktif sitaktif commented Jul 4, 2024

The http_file repo rules relied on Github-specific per-file HTTP API. Change this to use an http_archive repo rule, which refers to a simple URL containing the source tarball for stdlib-list.

The release version of pypi/stdlib-list this is now pointing to is v0.10.0. This tag is slightly older than the original commit it was pointing to (8cbc2067a4a0f9eee57fb541e4cd7727724b7db4) but, as discussed in pypi/stdlib-list#122, the only differences are build or doc related, there are no differences in the sources (see the diff).

(Creating an associated issue didn't feel particularly useful but happy to do it if it's a mandatory part of the process!)

The `http_file` repo rules relied on Github-specific per-file HTTP API.
Change this to use an `http_archive` repo rule, which refers to a simple
URL containing the source tarball for stdlib-list.
@sitaktif sitaktif marked this pull request as ready for review July 4, 2024 10:48
@sitaktif sitaktif requested a review from f0rmiga as a code owner July 4, 2024 10:48
Copy link
Copy Markdown
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot for the contribution!

@aignas aignas changed the title build: use http_archive for the stdlib list refactor: use http_archive for the stdlib list Jul 8, 2024
@aignas aignas added this pull request to the merge queue Jul 8, 2024
Merged via the queue into bazel-contrib:main with commit d710539 Jul 8, 2024
@sitaktif
Copy link
Copy Markdown
Contributor Author

sitaktif commented Jul 9, 2024

Thanks!

@sitaktif sitaktif deleted the http-archive-for-stdlib-list branch July 9, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants