Skip to content
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

Conversation

mtoader
Copy link
Contributor

@mtoader mtoader commented Sep 3, 2024

Checklist

  • I have filed an issue about this change and discussed potential changes with the maintainers.
  • I have received the approval from the maintainers to make this change.
  • This is not a stylistic, refactoring, or cleanup change.

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 it bzlmod.

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.

…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).
@github-actions github-actions bot added product: CLion CLion plugin product: IntelliJ IntelliJ plugin product: GoLand GoLand plugin awaiting-review Awaiting review from Bazel team on PRs labels Sep 3, 2024
@tpasternak tpasternak linked an issue Sep 3, 2024 that may be closed by this pull request
Copy link
Collaborator

@tpasternak tpasternak left a 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

@tpasternak tpasternak merged commit fbb3f1a into bazelbuild:master Sep 3, 2024
8 checks passed
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Sep 3, 2024
@mtoader mtoader deleted the mtoader/gate-external-workspace-data-provider-on-bzlmod-being-enabled branch September 3, 2024 16:27
mtoader added a commit to mtoader/intellij that referenced this pull request Sep 5, 2024
  In PR bazelbuild#6711 i added two back to back bazel info calls.

  This PR collapsed  those calls into one.
mtoader added a commit to mtoader/intellij that referenced this pull request Sep 5, 2024
  In PR bazelbuild#6711 i added two back to back bazel info calls.

  This PR collapsed  those calls into one.
mtoader added a commit to mtoader/intellij that referenced this pull request Sep 5, 2024
  In PR bazelbuild#6711 i added two back to back bazel info calls.

  This PR collapsed  those calls into one.
mtoader added a commit to mtoader/intellij that referenced this pull request Sep 5, 2024
  In PR bazelbuild#6711 i added two back to back bazel info calls.

  This PR collapsed  those calls into one.
tpasternak pushed a commit that referenced this pull request Sep 5, 2024
In PR #6711 i added two back to back bazel info calls.

  This PR collapsed  those calls into one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: CLion CLion plugin product: GoLand GoLand plugin product: IntelliJ IntelliJ plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running bazel mod ... From Plugin Fails on Non-BzlMod Project
4 participants