-
Notifications
You must be signed in to change notification settings - Fork 312
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
[#6664] Gate ExternalWorkspaceDataProvider
on bzlmod being enabled
#6711
[#6664] Gate ExternalWorkspaceDataProvider
on bzlmod being enabled
#6711
Conversation
…g enabled This change enhances the BlazeInfo collection to also collect the value of `startlark-semantics`. This will tell if any Starlark specific flags have been flipped from default. The flag we care about it `bzlmod`. Use this info key contents to gate running of `ExternalWorkspaceDataProvider` (in addition to 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.
One thing to note here is:
it will always run two blaze info commands back to back since making it run only one requires whitelisting all the used info flags in one command. If that can be a problem I can change it back to a whitelist but that has the risk of not pulling all the used flags.
Yeah, let's condense it into a single bazel info
call, but it's definitely not a blocker
In PR bazelbuild#6711 i added two back to back bazel info calls. This PR collapsed those calls into one.
In PR bazelbuild#6711 i added two back to back bazel info calls. This PR collapsed those calls into one.
In PR bazelbuild#6711 i added two back to back bazel info calls. This PR collapsed those calls into one.
In PR bazelbuild#6711 i added two back to back bazel info calls. This PR collapsed those calls into one.
Checklist
Discussion thread for this change
Issue number:
6664
(#6664)Issue number:
6703
(#6703)Description of this change
This change enhances the BlazeInfo collection to also collect the value of
startlark-semantics
. This will tell if any Starlark specific flags have been flipped from default. The flag we care about itbzlmod
.Use this info key contents to gate running of
ExternalWorkspaceDataProvider
(in addition to bazel version).One thing to note here is:
it will always run two
blaze info
commands back to back since making it run only one requires whitelisting all the used info flags in one command. If that can be a problem I can change it back to a whitelist but that has the risk of not pulling all the used flags.