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

brew upgrade gives error: "homebrew/cask-versions/zulu11: No such file or directory @ rb_file_s_rename" #166367

Closed
6 tasks done
MrsBookik opened this issue Feb 9, 2024 · 7 comments
Labels
awaiting user reply Issue needs response from a user. outdated stale Issue which has not received any feedback for some time.

Comments

@MrsBookik
Copy link

Verification

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:
  openssl@1.1

❯ 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
@MrsBookik MrsBookik changed the title brew upgarde gives error: "homebrew/cask-versions/zulu11: No such file or directory @ rb_file_s_rename" brew upgrade gives error: "homebrew/cask-versions/zulu11: No such file or directory @ rb_file_s_rename" Feb 9, 2024
@bevanjkay
Copy link
Member

CC: @reitermarkus
Is this related to recent Caskloader changes?

@reitermarkus
Copy link
Member

Sorry, I completely missed this.

@MrsBookik, is this still happening?

@reitermarkus
Copy link
Member

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.

@thedevdavid
Copy link

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)

@MrsBookik
Copy link
Author

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

@Chicook
Copy link

Chicook commented Feb 28, 2024

¿Alguien sabe porque GitHub no me deja hacer forks ni participar en repositorios públicos?

@cho-m
Copy link
Member

cho-m commented Mar 8, 2024

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 - Homebrew/homebrew-cask-versions@b12f40e but brew should have saved the install-time copy of Cask so that shouldn't have impacted upgrade.

@cho-m cho-m added the awaiting user reply Issue needs response from a user. label Mar 15, 2024
Copy link

github-actions bot commented Apr 6, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale Issue which has not received any feedback for some time. label Apr 6, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
awaiting user reply Issue needs response from a user. outdated stale Issue which has not received any feedback for some time.
Projects
None yet
Development

No branches or pull requests

6 participants