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

Revert "Deprecate installing casks/formulae from paths." #18436

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

carlocab
Copy link
Member

brew test-bot seems to be broken now for third-party taps.

Fixes #18433

Reverts #18409

Copy link
Member

@Bo98 Bo98 left a comment

Choose a reason for hiding this comment

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

Also saw a lot of spam with --HEAD and -s runs:

$ brew install -s hello
==> Fetching hello
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/2f982e1
######################################################################### 100.0%
Warning: Calling installing formulae from paths or URLs is deprecated! Use installing formulae from taps instead.
==> Downloading https://ftp.gnu.org/gnu/hello/hello-2.12.1.tar.gz
Already downloaded: /opt/workbrew/home/Library/Caches/Homebrew/downloads/75885520e988c7fe11cd90a933d9fc389e413d5c210aa889325bc61a90c482d4--hello-2.12.1.tar.gz

Warning: Calling installing formulae from paths or URLs is deprecated! Use installing formulae from taps instead.
Warning: Calling installing formulae from paths or URLs is deprecated! Use installing formulae from taps instead.
==> ./configure --disable-silent-rules

This is because we internally rely on path loading for a lot of things (intentionally). See the ENV.delete("HOMEBREW_FORBID_PACKAGES_FROM_PATHS") we have. (To be clear: that isn't a security hole - paths are considered trusted at the point that happens and we want to be very precise which Ruby file is used for e.g. postinstall.)

@carlocab carlocab merged commit 99c4716 into master Sep 27, 2024
27 checks passed
@carlocab carlocab deleted the revert-18409-deprecate_formula_cask_path_url branch September 27, 2024 02:28
@MikeMcQuaid
Copy link
Member

Thanks for revert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants