-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
With HOMEBREW_CASK_OPTS="--require-sha", brew bundle exits 0 even if installation is not successful #1275
Comments
Wow, what timing — I was just about to file a very similar issue, although in my case the cask install failed due to a pre-existing Same version $ echo 'cask "emacs"' | brew bundle install --file=- ; echo $?
Installing emacs
Homebrew Bundle complete! 1 Brewfile dependency now installed.
0
$ brew list --cask | grep emacs ; echo $?
1 $ echo 'cask "emacs"' | brew bundle install --verbose --file=-; echo $?
==> Downloading https://formulae.brew.sh/api/cask.jws.json
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1047k 100 1047k 0 0 3169k 0 --:--:-- --:--:-- --:--:-- 3446k
Installing emacs
Installing emacs cask. It is not currently installed.
==> Downloading https://emacsformacosx.com/emacs-builds/Emacs-29.1-1-universal.d
Already downloaded: /Users/ichamberlain/Library/Caches/Homebrew/downloads/bc7dcf972996173def825339282d91fd01e6a66a1448b5b37ec126d4500c561f--Emacs-29.1-1-universal.dmg
==> Installing Cask emacs
==> Purging files for version 29.1-1 of Cask emacs
Error: It seems there is already an App at '/Applications/Emacs.app'.
Installing emacs has failed!
Homebrew Bundle failed! 1 Brewfile dependency failed to install.
1
Edit: possibly introduced by fe11409 ?
|
I can report the same symptoms - |
I expect this should now be resolved. Please verify and respond if not! |
Confirmed, after a $ echo 'cask "emacs"' | brew bundle install --file=-; echo $?
Installing emacs
==> Downloading https://emacsformacosx.com/emacs-builds/Emacs-29.1-1-universal.dmg
Already downloaded: /Users/ichamberlain/Library/Caches/Homebrew/downloads/bc7dcf972996173def825339282d91fd01e6a66a1448b5b37ec126d4500c561f--Emacs-29.1-1-universal.dmg
==> Installing Cask emacs
Error: It seems there is already an App at '/Applications/Emacs.app'.
==> Purging files for version 29.1-1 of Cask emacs
Installing emacs has failed!
Homebrew Bundle failed! 1 Brewfile dependency failed to install.
1 Thanks! |
Verified this issue is fixed (tested on Homebrew 4.2.2-29-gb3751bc). 🎉 |
@ian-h-chamberlain @weakish thanks for reporting back, really helpful 🙇🏻 |
Provided that
HOMEBREW_CASK_OPTS="--require-sha"
,even if installation is not successful due to checksum not defined,
brew bundle
still exists 0 and not reporting any error.For example: (chromium cask defines its
sha256
checksum as:no_check
)From the output, it seems everything is okay and chromium is installed:
Also, the status code is 0.
However, in fact chromium is not installed:
Strangely, running
brew bundle
with the verbose option, brew exists 1 correctly:Homebrew version: 4.2.2-18-gdcd267b
The text was updated successfully, but these errors were encountered: