-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get module version from module_ctx and try to lookup integrities #103
Conversation
I'll find some cycles to look at this in the morning. |
Friendly bump |
@@ -21,7 +20,8 @@ def _internal_configure_extension_impl(module_ctx): | |||
name = "pybind11", | |||
build_file = "//:pybind11-BUILD.bazel", | |||
strip_prefix = "pybind11-%s" % version, | |||
urls = ["https://github.com/pybind/pybind11/archive/v%s.zip" % version], | |||
url = "https://github.com/pybind/pybind11/archive/refs/tags/v%s.tar.gz" % version, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this Github's preferred linking scheme? The releases page shows URLs like https://github.com/pybind/pybind11_bazel/releases/download/v2.12.0/pybind11_bazel-2.12.0.tar.gz
Is there any documentation for my own education?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bazel-contrib/SIG-rules-authors#11 (comment)
However your releases/download URL version is even better because those artifacts are not generated by GitHub on demand but actual files attached to the release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Source code (...)" ones are generated by GitHub, anything else is manually uploaded as part of the release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry my day job kept me very busy for a few days. This looks good, I'm going to merge it.
|
||
def _internal_configure_extension_impl(module_ctx): | ||
version = _parse_my_own_version_from_module_dot_bazel(module_ctx) | ||
(pybind11_bazel,) = [module for module in module_ctx.modules if module.name == "pybind11_bazel"] | ||
version = pybind11_bazel.version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@@ -21,7 +20,8 @@ def _internal_configure_extension_impl(module_ctx): | |||
name = "pybind11", | |||
build_file = "//:pybind11-BUILD.bazel", | |||
strip_prefix = "pybind11-%s" % version, | |||
urls = ["https://github.com/pybind/pybind11/archive/v%s.zip" % version], | |||
url = "https://github.com/pybind/pybind11/archive/refs/tags/v%s.tar.gz" % version, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry my day job kept me very busy for a few days. This looks good, I'm going to merge it.
Fixes #102