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

Improve homebrew/{core,cask} autotapping. #14613

Merged
merged 1 commit into from Feb 14, 2023

Conversation

MikeMcQuaid
Copy link
Member

Don't automatically tap these when running a developer command that's not using the API.

Fixes #14606

@MikeMcQuaid MikeMcQuaid added the critical Critical change which should be shipped as soon as possible. label Feb 13, 2023
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

@@ -805,6 +805,7 @@ then
if check-array-membership "${HOMEBREW_COMMAND}" "${NO_INSTALL_FROM_API_COMMANDS[@]}"
then
export HOMEBREW_NO_INSTALL_FROM_API=1
export HOMEBREW_NO_INSTALL_FROM_API_SET_AUTOMATICALLY=1
Copy link
Member

Choose a reason for hiding this comment

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

Should we set this only when HOMEBREW_NO_INSTALL_FROM_API is not already set by the user?

Copy link
Member Author

Choose a reason for hiding this comment

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

@carlocab Yes, good catch.

Copy link
Member

@Rylan12 Rylan12 left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

Library/Homebrew/brew.sh Outdated Show resolved Hide resolved
@Bo98 Bo98 added the install from api Relates to API installs label Feb 14, 2023
@apainintheneck
Copy link
Contributor

Will the dev commands still work correctly after this without tapping the core taps automatically? Or will they break like before?

@MikeMcQuaid
Copy link
Member Author

Will the dev commands still work correctly after this without tapping the core taps automatically?

It depends what you mean by "work correctly". If they aren't tapped and you try to brew edit a file that doesn't exist: it won't be found. That seems better than auto-tapping. If we get issues: we can improve the messaging here.

Don't automatically tap these when running a developer command that's
not using the API.

Fixes #14606
@MikeMcQuaid MikeMcQuaid merged commit aa7a543 into Homebrew:master Feb 14, 2023
@MikeMcQuaid MikeMcQuaid deleted the improve_autotapping branch February 14, 2023 10:30
@github-actions github-actions bot added the outdated PR was locked due to age label Mar 18, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. install from api Relates to API installs outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Developer commands should be disabled when developer mode is off
6 participants