Closed llimllib closed 1 month ago
What's the output of brew outdated
?
You should be able to run brew upgrade eza bat
to fix the broken installs, but I agree that brew
should've handled this automatically. Please check the output of brew outdated
before running brew upgrade
.
CC @Homebrew/brew
I largely prefer not to update stuff that works, so I have many outdated packages; in this output I have updated bat
such that it no longer appears, but left eza
at the old version to facilitate debugging this issue
Great, thanks. So I assume bat
works now after having upgraded it?
So I assume bat works now after having upgraded it?
correct, brew uninstall bat && brew install bat
linked against the proper libgit2 and got me a working bat
again
I largely prefer not to update stuff that works, so I have many outdated packages
Homebrew is a rolling release package manager, meaning we only support the latest versions of formulae. You should expect to encounter strange breakage if you do not regularly upgrade.
Homebrew is a rolling release package manager, meaning we only support the latest versions of formulae. You should expect to encounter strange breakage if you do not regularly upgrade.
Yep, but that seems orthogonal to the original issue of brew
knowing that it needed to upgrade bat
and eza
, attempting to start doing so, but never actually doing it.
@p-linnane in this case:
brew
correctly reported that it needed to update both packagesbrew
failed to update them, and reported no error to the user, leaving them in a broken statesurely that is a bug?
Yes, that is a bug. I'm just trying to provide you some additional information that may avoid future issues which are not bugs.
Yep, but that seems orthogonal to the original issue of
brew
knowing that it needed to upgradebat
andeza
, attempting to start doing so, but never actually doing it.
Agreed that this is the issue here and we should fix it.
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
I upgraded
mise
withbrew upgrade mise
What happened (include all command output)?
libgit2
full output for `brew upgrade mise`
``` $ brew upgrade mise ==> Auto-updating Homebrew... Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). ==> Upgrading 1 outdated package: mise 2024.6.2 -> 2024.7.5 ==> Downloading https://ghcr.io/v2/homebrew/core/mise/manifests/2024.7.5 ##################################################################################################################################################################################################################### 100.0% ==> Fetching dependencies for mise: libgit2 ==> Downloading https://ghcr.io/v2/homebrew/core/libgit2/manifests/1.8.1 ##################################################################################################################################################################################################################### 100.0% ==> Fetching libgit2 ==> Downloading https://ghcr.io/v2/homebrew/core/libgit2/blobs/sha256:c74a306a3d2a68d22dd3951ca1a2fb0c566fccd4ff7ac1b40c75fb739cf4359f ##################################################################################################################################################################################################################### 100.0% ==> Fetching mise ==> Downloading https://ghcr.io/v2/homebrew/core/mise/blobs/sha256:7d420ff645c77e2d82e85f10aaa7806a43441f495e4a45aa78679abaffa9da38 ##################################################################################################################################################################################################################### 100.0% ==> Upgrading mise 2024.6.2 -> 2024.7.5 ==> Installing dependencies for mise: libgit2 ==> Installing mise dependency: libgit2 ==> Downloading https://ghcr.io/v2/homebrew/core/libgit2/manifests/1.8.1 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/84b074c6d1ee51616dfba962c9b638aeda6093080b5ebf82e6a02017bce44215--libgit2-1.8.1.bottle_manifest.json ==> Verifying attestation for libgit2 ==> Pouring libgit2--1.8.1.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/libgit2/1.8.1: 106 files, 4.7MB ==> Installing mise ==> Verifying attestation for mise ==> Pouring mise--2024.7.5.arm64_sonoma.bottle.tar.gz ==> Caveats If you are using fish shell, mise will be activated for you automatically. zsh completions have been installed to: /opt/homebrew/share/zsh/site-functions ==> Summary 🍺 /opt/homebrew/Cellar/mise/2024.7.5: 15 files, 18MB ==> Running `brew cleanup mise`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). Removing: /opt/homebrew/Cellar/mise/2024.6.2... (15 files, 18.2MB) Removing: /Users/llimllib/Library/Caches/Homebrew/mise_bottle_manifest--2024.6.2... (11KB) Removing: /Users/llimllib/Library/Caches/Homebrew/mise_bottle_manifest--2024.7.0... (11.4KB) ==> Upgrading 2 dependents of upgraded formulae: Disable this behaviour by setting HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). bat 0.24.0 -> 0.24.0_1, eza 0.18.13 -> 0.18.23 ==> Downloading https://ghcr.io/v2/homebrew/core/bat/manifests/0.24.0_1 ##################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/eza/manifests/0.18.23 ##################################################################################################################################################################################################################### 100.0% ==> Checking for dependents of upgraded formulae... ==> No broken dependents to reinstall! ==> Caveats ==> mise If you are using fish shell, mise will be activated for you automatically. zsh completions have been installed to: /opt/homebrew/share/zsh/site-functions ```bat
andeza
were linked against the oldlibgit2
, and tried to upgrade themlibgit2
; they fail withLibrary not loaded
investigating the eza package
``` $ brew info eza ==> eza: stable 0.18.23 (bottled) Modern, maintained replacement for ls https://github.com/eza-community/eza Installed /opt/homebrew/Cellar/eza/0.18.13 (14 files, 1003.0KB) * Poured from bottle using the formulae.brew.sh API on 2024-05-01 at 14:13:52 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/e/eza.rb License: MIT ==> Dependencies Build: pandoc ✘, pkg-config ✔, rust ✘ Required: libgit2 ✔ ==> Caveats zsh completions have been installed to: /opt/homebrew/share/zsh/site-functions ==> Analytics install: 16,224 (30 days), 44,705 (90 days), 115,919 (365 days) install-on-request: 16,225 (30 days), 44,705 (90 days), 115,918 (365 days) build-error: 11 (30 days) $ ls /opt/homebrew/Cellar/eza/ 0.18.13/ $ eza dyld[36490]: Library not loaded: /opt/homebrew/opt/libgit2/lib/libgit2.1.7.dylib Referenced from: <4568B803-1560-367E-A1E5-BE062C6828B8> /opt/homebrew/Cellar/eza/0.18.13/bin/eza Reason: tried: '/opt/homebrew/opt/libgit2/lib/libgit2.1.7.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libgit2/lib/libgit2.1.7.dylib' (no such file), '/opt/homebrew/opt/libgit2/lib/libgit2.1.7.dylib' (no such file), '/opt/homebrew/Cellar/libgit2/1.8.1/lib/libgit2.1.7.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/libgit2/1.8.1/lib/libgit2.1.7.dylib' (no such file), '/opt/homebrew/Cellar/libgit2/1.8.1/lib/libgit2.1.7.dylib' (no such file) ```What did you expect to happen?
upgrading mise, which upgraded libgit2, ought to have upgraded eza and bat. It reported that it did, but the upgrades seem not to have happened, leaving me with broken packages despite no errors being shown.
I expected either errors to appear, or the packages to work
Step-by-step reproduction instructions (by running
brew
commands)libgit2@1.7
libgit2@1.8