-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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 -g failed, listxattr for destination failed #18656
Comments
Are you running OpenCore? We've seen limited reports of this on that setup. |
Also please try update to macOS 15.1 to make sure the issue still persists there. |
yes.OpenCore-Patcher 2.0.2. 2014,intel,13-inch |
15.1 still have the problem
|
May want to try a reinstall of your CLT, e.g. #18540 / https://github.com/orgs/Homebrew/discussions/5482 |
no helps, reinstall CLT, problem still here |
@Bo98 do we have a way if detecting that? We should probably add a |
Same problems here with macOS 15.1. I reinstalled the CLT and now also tried installing XCode (maybe CLT were missing something). But no matter what I install/reinstall I always get
I than modified the copy-xattrs.swift code to output the vars leading to this error handling and for every app it showed: Only happens with brew upgrade. If I brew uninstall and than again brew install --cask ... everything is ok and works as expected |
yes,i try |
I've reflected on these issues for a few days and after seeing one too many reports triggered by one too many root causes I think I'm going to look into porting this stuff to FFI via Fiddle. Swift seems to be overall a bit of a mess right now plus it would be nice to make Casks work without needing development tools installed anyway. We have used Fiddle since macOS 11 (albeit in very limited form until a few weeks ago: #18486) and it's never had any issues. We'll likely always need it for the linkage checker, so it won't go away even when it is no longer a default gem in Ruby 3.5 (we'll keep it like we do for I might add some build-from-source |
Homebrew/discussions#5723 seems related, and
will likely fix it too. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I slightly modified the swift script to dump out the arguments and their count of the mentioned command. Running that without any additional arguments
printed out that 31 arguments are provided to the swift script by this command. The script expects that the source folder will be the second argument CommandLine.arguments[1] and the destination the third one CommandLine.arguments[2], so if I shift those arguments with 31, everything works fine. I don't know if this behaviour is somehow related to OpenCore and how exactly it could be fixed. |
Verification
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
run
brew upgrade -g
, upgrade app failed, Caskroom loss version infomation==> Upgrading 2 outdated packages:
raycast 1.84.5 -> 1.84.6
reqable 2.27.1 -> 2.27.2
...
==> Backing App 'Raycast.app' up to '/usr/local/Caskroom/raycast/1.84.5/Raycast.app'
==> Removing App '/Applications/Raycast.app'
==> Moving App 'Raycast.app' to '/Applications/Raycast.app'
listxattr for destination failed: 2
==> Purging files for version 1.84.6 of Cask raycast
==> Purging files for version 1.84.6 of Cask raycast
Warning: Reverting upgrade for Cask raycast
==> Purging files for version 1.84.5 of Cask raycast
...
Error: Problems with multiple casks:
raycast: It seems there is already an App at '/Applications/Raycast.app'.
echo $(brew --prefix)
/usr/local
cd /usr/local/Caskroom && tree -L 2
.
├── foobar2000
│ └── 2.6.5
...
│ └── 2,1.0
├── raycast
├── reqable
Command that failed
brew upgrade -g
Output of command with
--verbose --debug
Output of
brew doctor
andbrew config
Output of
brew tap
`brew tap` gromgit/fuse
The text was updated successfully, but these errors were encountered: