-
Notifications
You must be signed in to change notification settings - Fork 408
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
Cover missing cases during module extension label normalization #1219
base: master
Are you sure you want to change the base?
Conversation
CC @Wyverald |
Sorry, not familiar with this code base nor with Go. |
@@ -66,6 +66,9 @@ prox9 = use_extension( | |||
prox9.use(label = "@name//:bar") | |||
prox10 = use_extension("@dep//:extensions.bzl", "other_ext", dev_dependency = bool(1)) | |||
prox10.use(dict = {"foo": "bar"}) | |||
prox11 = use_extension("extension.bzl", "ext") | |||
prox12 = use_extension(":extension.bzl", "ext") | |||
prox13 = use_extension("//:extension.bzl", "ext") |
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.
what about use_extension("@repo_name//:extension.bzl", "ext")
?
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.
I added more tests covering this case, is that what you had in mind?
This is running into the same kind of likely unrelated CI failures on Windows as my other PR. |
998e942
to
f6aef5e
Compare
@vladmos Friendly ping |
1 similar comment
@vladmos Friendly ping |
169aa8f
to
7e846e2
Compare
The previous logic missed to normalize cases such as "extension.bzl" and ":extension.bzl". Instead of enumerating cases, parse the label and track it in canonical form.
7e846e2
to
9507332
Compare
The previous logic missed to normalize cases such as "extension.bzl" and ":extension.bzl". Instead of enumerating cases, parse the label and track it in canonical form.
Related to bazelbuild/bazel#20482