Open
Description
brew doctor
output
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:
icu4c@75
Warning: The following casks have the same name as core casks:
1password/tap/1password-cli
Some of these can be resolved with:
brew untap 1password/tap
Verification
- My "
brew doctor
output" above saysYour 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. - This issue's title and/or description do not reference a single formula e.g.
brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.
brew config
output
HOMEBREW_VERSION: 4.4.24-291-gf3bd91d
ORIGIN: https://github.com/Homebrew/brew
HEAD: f3bd91d3afe086824d24708230e1f0c7f943135a
Last commit: 3 hours ago
Branch: master
Core tap HEAD: 03867d2aaf87e0a5fa0aa70f65697ca942ab418f
Core tap last commit: 50 minutes ago
Core tap JSON: 20 Mar 11:11 UTC
Core cask tap HEAD: 13ded366909526e56bed9d27091f29b80e2bd69f
Core cask tap last commit: 16 minutes ago
Core cask tap JSON: 20 Mar 11:11 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: ["--appdir=/Applications"]
HOMEBREW_EDITOR: code --wait
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.7 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.7/bin/ruby
CPU: octa-core 64-bit arm_blizzard_avalanche
Clang: 16.0.0 build 1600
Git: 2.48.1 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 14.7-arm64
CLT: 16.1.0.0.1.1729049160
Xcode: N/A
Rosetta 2: false
What were you trying to do (and why)?
I am trying to install a vendored (deprecated) formula from a local tap with a script in the Brewfile. The entire brewfile looks like this:
system "brew tap-new project/temp"
system "cp vendored/brew/xmlsec1.rb $(brew --repository)/Library/Taps/project/homebrew-temp/Formula/libxmlsec1.rb"
brew "project/temp/libxmlsec1"
However, this now fails with the error:
sh: brew: command not found
This Brewfile was working until approximately yesterday or today. For some reason, the system command is no longer able to identify the brew
command.
What happened (include all command output)?
❯ brew bundle --file=BrewfileEg
sh: brew: command not found
cp: /Library/Taps/project/homebrew-temp/Formula/libxmlsec1.rb: No such file or directory
Installing project/temp/libxmlsec1
Warning: 'project/temp/libxmlsec1' formula is unreadable: No available formula with the name "project/temp/libxmlsec1".
Please tap it and then try again: brew tap project/temp
==> Tapping project/temp
Cloning into '/opt/homebrew/Library/Taps/project/homebrew-temp'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Error: Failure while executing; `git clone https://github.com/project/homebrew-temp /opt/homebrew/Library/Taps/project/homebrew-temp --origin=origin --template= --config core.fsmonitor=false` exited with 128.
Installing project/temp/libxmlsec1 has failed!
`brew bundle` failed! 1 Brewfile dependency failed to install
What did you expect to happen?
I expected the system "brew tap-new project/temp"
entry in the Brewfile to create a local tap, so that I can install a vendored formula into it for installation.
Step-by-step reproduction instructions (by running brew
commands)
Create a Brewfile with the content:
system "brew tap-new project/temp"
system "cp vendored/brew/xmlsec1.rb $(brew --repository)/Library/Taps/project/homebrew-temp/Formula/libxmlsec1.rb"
brew "project/temp/libxmlsec1"
Then attempt to install from the Brewfile:
brew bundle --file=Brewfile
Metadata
Metadata
Assignees
Labels
No labels