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

Add more invocation suggestions (round 2) #2032

Merged
merged 2 commits into from May 18, 2022
Merged

Add more invocation suggestions (round 2) #2032

merged 2 commits into from May 18, 2022

Conversation

bduffany
Copy link
Member

@bduffany bduffany commented May 18, 2022

  • Suggest using --incompatible_strict_action_env if not set -- removed this one, since Brentley pointed out it's not desirable for iOS builds, and there may be other cases I'm not aware of.
  • Suggest adding COMMIT_SHA and REPO_URL metadata if this is a CI test and those pieces of metadata are missing
  • Polish up a few other suggestions (add flag links, make wording more consistent)

Version bump: Patch

Related issues: https://github.com/buildbuddy-io/buildbuddy-internal/issues/1357

@bduffany bduffany requested a review from siggisim May 18, 2022 17:42
({ model }) => {
if (!capabilities.config.expandedSuggestionsEnabled) return null;

if (model.optionsMap.get("incompatible_strict_action_env") !== undefined) return null;
Copy link
Member Author

Choose a reason for hiding this comment

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

@siggisim I wasn't sure whether we want to show this across the board, or only if remote cache is enabled. wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should suggest it until we can mark suggestions as "I don't want to do this". Most iOS projects shouldn't actually set this, and should instead filter PATH in tools/bazel, since --incompatible_strict_action_env adds /usr/local/bin, which picks up Homebrew on Intel Macs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for pointing this out -- removed from this PR.

@bduffany bduffany merged commit 5537967 into master May 18, 2022
@bduffany bduffany deleted the suggestions-2 branch May 18, 2022 18:58
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.

None yet

3 participants