You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!Warning: Some installed formulae are deprecated or disabled.You should find replacements for the following formulae:[email protected] pyyamlWarning: You have the following deprecated, official taps tapped: Homebrew/homebrew-cask-versionsUntap them with `brew untap`.Warning: You have unlinked kegs in your Cellar.Leaving kegs unlinked can lead to build-trouble and cause formulae that depend onthose kegs to fail to run properly once built. Run `brew link` on these: uutils-coreutils
Verification
My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
I ran brew update twice and am still able to reproduce my issue.
HOMEBREW_VERSION: 4.3.23
ORIGIN: https://github.com/Homebrew/brew
HEAD: 42c11a4dedf352229271593de831161071603c66
Last commit: 5 days ago
Core tap JSON: 21 Sep 22:52 UTC
Core cask tap JSON: 21 Sep 22:52 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.3.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4_1/bin/ruby
CPU: dodeca-core 64-bit arm_blizzard_avalanche
Clang: 16.0.0 build 1600
Git: 2.46.1 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.1-arm64
CLT: 16.0.0.0.1.1723780521
Xcode: 16.1 => /Applications/Xcode-16.1.0-Beta.app/Contents/Developer
Rosetta 2: false
What were you trying to do (and why)?
I wrote a formula for Slanghere. When debugging the formula locally I noticed two things: if I asked for brew info slang when installed, I would get the information for s-lang; and importantly that if I install from a local ruby file like brew install --formula --head ./slang.rb, then after successfully running the install, it would say it will try to do brew cleanup slang, but this would fail by apparently trying to run cleanup on s-lang. When the formula is installed remote with brew install --formula --head thefanatr/slang/slang, this does not happen.
Yea, installing formulae from paths is buggy and shouldn't be used. We should probably remove the ability to do that at some point.
To avoid this, put slang.rb in a tap (e.g. one created with brew tap-new) and then do brew install thefanatr/your-tap-name/slang. Note that a tap doesn't need to be a Git repo. It would be sufficient to do something like:
Yea, installing formulae from paths is buggy and shouldn't be used. We should probably remove the ability to do that at some point.
Agreed 👍🏻. Rescoping this issue to that.
MikeMcQuaid
changed the title
Automatic Cleanup on Install of Local Formula File Aliases Name to Names From Taps
Don't allow installing formulae from paths without HOMEBREW_DEVELOPER
Sep 23, 2024
…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.
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
I wrote a formula for Slang here. When debugging the formula locally I noticed two things: if I asked for
brew info slang
when installed, I would get the information fors-lang
; and importantly that if I install from a local ruby file likebrew install --formula --head ./slang.rb
, then after successfully running the install, it would say it will try to dobrew cleanup slang
, but this would fail by apparently trying to runcleanup
ons-lang
. When the formula is installed remote withbrew install --formula --head thefanatr/slang/slang
, this does not happen.What happened (include all command output)?
brew install --head --formula ../homebrew-slang/slang.rb
Error
brew cleanup slang
but
brew install --head thefanatr/slang/slang
No Error
brew cleanup slang
What did you expect to happen?
The no error version for the local formula case.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: