-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
env_config: infer HOMEBREW_FORBID_PACKAGES_FROM_PATHS from HOMEBREW_DEVELOPER #18379
base: master
Are you sure you want to change the base?
Conversation
…EVELOPER If `HOMEBREW_DEVELOPER` is not set, then let's make `HOMEBREW_FORBID_PACKAGES_FROM_PATHS` default to true. I used a custom implementation here because we don't currently support setting defaults for booleans. (See calls to `define_method` below.) Closes #18371.
Since this is a breaking change, we may want to save this for a minor release. |
Looks like a lot of tests will need fixing. |
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.
Feels like a good quick win here but a little clunky for long-term.
👍🏻 to ship as-is (with or without suggestion) and iterate.
ENVS.fetch(:HOMEBREW_FORBID_PACKAGES_FROM_PATHS) | ||
.fetch(:default) | ||
.call |
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.
ENVS.fetch(:HOMEBREW_FORBID_PACKAGES_FROM_PATHS) | |
.fetch(:default) | |
.call | |
developer? |
feels a bit nice?
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I'll get to this late next week (or in the first half of the week following that). Note: I'm not optimistic about being able to fix the test failures, so I may just end up closing this after working on it again. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?If
HOMEBREW_DEVELOPER
is not set, then let's makeHOMEBREW_FORBID_PACKAGES_FROM_PATHS
default to true.I used a custom implementation here because we don't currently support
setting defaults for booleans. (See calls to
define_method
below.)Closes #18371.