homebrew-cask
homebrew-cask copied to clipboard
brew upgrade gives error: "homebrew/cask-versions/zulu11: No such file or directory @ rb_file_s_rename"
Verification
- [X] I understand that if I ignore these instructions, my issue may be closed without review.
- [X] I have retried my command with
--force. - [X] I ran
brew update-reset && brew updateand retried my command. - [X] I ran
brew doctor, fixed as many issues as possible and retried my command. - [X] I have checked the instructions for reporting bugs.
- [X] I made doubly sure this is not a checksum does not match / SHA256 mismatch error (do not open an issue before trying to open a PR to fix first).
Description of issue
brew upgrade -v --debug gives the following reproducible error:
Error: homebrew/cask-versions/zulu11: No such file or directory @ rb_file_s_rename - (/opt/homebrew/Caskroom/zulu11/11.0.21,11.68.17-ca, /opt/homebrew/Caskroom/zulu11/11.0.21,11.68.17-ca.upgrading)
brew autoremove, brew cleanup, brew update-resetdidn't help. --force also not.
Command that failed
brew upgrade -v --debug
Output of command with --verbose --debug
==> Verifying checksum for 'ed9abbbdfe0baceff48f0de60c81d3c1efb6f76a05bcbe02815a03cde51a2c2d--zulu11.70.15-ca-jdk11.0.22-macosx_aarch64.dmg'
==> Uninstalling packages with sudo; the password may be necessary:
==> Purging files for version 11.0.22,11.70.15 of Cask zulu11
Error: homebrew/cask-versions/zulu11: No such file or directory @ rb_file_s_rename - (/opt/homebrew/Caskroom/zulu11/11.0.21,11.68.17-ca, /opt/homebrew/Caskroom/zulu11/11.0.21,11.68.17-ca.upgrading)
Output of brew doctor and brew config
❯ brew doctor
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]
❯ brew config
HOMEBREW_VERSION: 4.2.7-90-ga58941a
ORIGIN: https://github.com/Homebrew/brew
HEAD: a58941a134dc4e1f803a44cbd70d01804e036831
Last commit: 8 hours ago
Core tap JSON: 09 Feb 11:46 UTC
Core cask tap JSON: 09 Feb 11:46 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.6z12IeL6B0/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.43.0 => /opt/homebrew/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 13.6-arm64
CLT: 15.1.0.0.1.1700200546
Xcode: 15.2
Rosetta 2: false
Output of brew tap
adoptopenjdk/openjdk
dart-lang/dart
ethereum/ethereum
heroku/brew
homebrew/cask-versions
homebrew/services
laggardkernel/tap
mutagen-io/mutagen
symfony-cli/tap
CC: @reitermarkus Is this related to recent Caskloader changes?
Sorry, I completely missed this.
@MrsBookik, is this still happening?
Doesn't seem like a CaskLoader issue since both versions 11.0.21,11.68.17-ca and 11.0.22,11.70.15 were actually loaded based on the output.
I tried installing 11.0.21,11.68.17-ca from an old commit and then upgrading and couldn't reproduce it.
Sorry, I completely missed this.
@MrsBookik, is this still happening?
Still happening for me.
homebrew/cask-versions/zulu11: No such file or directory @ rb_file_s_rename - (/opt/homebrew/Caskroom/zulu11/11.0.21,11.68.17, /opt/homebrew/Caskroom/zulu11/11.0.21,11.68.17.upgrading)
Sorry, I completely missed this.
@MrsBookik, is this still happening?
Thanks for asking! I fixed it by deleting zulu11 (and everything that was based on it), and then reinstalled it again
¿Alguien sabe porque GitHub no me deja hacer forks ni participar en repositorios públicos?
Has this only been seen on zulu11? For anyone still seeing issue, maybe check what is inside directory /opt/homebrew/Caskroom/zulu11/ given expected subdirectory is missing.
I also can't reproduce; however, the exact code path is different since I am not able to test via JSON API. If no one on maintainer side can reproduce, then it will be difficult to figure out what is going wrong and will require some additional user debug info.
If issue is seen on other Casks, then it may be something general in brew. If it is specific to zulu11, then it may be handling of that Cask.
The only thing special about zulu11 that I see was version format change on that specific version - https://github.com/Homebrew/homebrew-cask-versions/commit/b12f40e2cef0e153fc006459fa2a7ce6d324d53c but brew should have saved the install-time copy of Cask so that shouldn't have impacted upgrade.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.