clang-format: Failed to download resource clang-format_bottle_manifest
peaceiris opened this issue ยท 8 comments
brew gist-logs <formula>
link OR brew config
AND brew doctor
output
$ brew config
HOMEBREW_VERSION: 3.2.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: 16b01d6e019e93b66e41d0bb8da66fec3fcc5cca
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/linuxbrew-core
Core tap HEAD: 218a4081cb07ca96d4fd4fa466cae4fbbc42f987
Core tap last commit: 89 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: localhost:10.0
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.3 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: quad-core 64-bit skylake
Clang: N/A
Git: 2.32.0 => /home/linuxbrew/.linuxbrew/bin/git
Curl: 7.68.0 => /usr/bin/curl
Kernel: Linux 5.4.0-77-generic x86_64 GNU/Linux
OS: Ubuntu 20.04.2 LTS (focal)
Host glibc: 2.31
/usr/bin/gcc: 9.3.0
/usr/bin/ruby: N/A
glibc: N/A
gcc@5: N/A
xorg: N/A
$ brew doctor
Your system is ready to brew.
- I ran
brew update
and am still able to reproduce my issue. - I have resolved all warnings from
brew doctor
and that did not fix my problem.
What were you trying to do (and why)?
brew install clang-format
What happened (include all command output)?
$ brew install clang-format
==> Downloading https://ghcr.io/v2/linuxbrew/core/clang-format/manifests/12.0.1
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "clang-format_bottle_manifest"
Download failed: https://ghcr.io/v2/linuxbrew/core/clang-format/manifests/12.0.1
What did you expect to happen?
Installing clang-format finishes successfully.
Step-by-step reproduction instructions (by running brew
commands)
$ brew update && brew outdated && brew upgrade
Already up-to-date.
$ brew install clang-format
==> Downloading https://ghcr.io/v2/linuxbrew/core/clang-format/manifests/12.0.1
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "clang-format_bottle_manifest"
Download failed: https://ghcr.io/v2/linuxbrew/core/clang-format/manifests/12.0.1
i'm also seeing the same for brew install idris2
, specifically
==> Downloading https://ghcr.io/v2/linuxbrew/core/idris2/manifests/0.4.0_1
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "idris2_bottle_manifest"
Download failed: https://ghcr.io/v2/linuxbrew/core/idris2/manifests/0.4.0_1
with
$ brew update
Already up-to-date.
$ brew doctor
Your system is ready to brew.
also similar to #23713 do we know if these are the same problem?
I'm seeing the same issue for python-launcher
.
does anyone have any idea how to fix this kind of issue? I'd be happy to try but I've no idea where to start
@joelberkeley My guess is some GitHub Action workflow that generates that manifest file failed (either due to a bug in the workflow or a hiccup on GitHub's side, e.g. GHR having problems at that exact moment). Probably the best option is to try and find the GitHub Action which creates the manifest files and then try to find the workflow run that was supposed to create the manifest file and failed (or find out in fact that workflow run never existed to begin with).
I found Homebrew/homebrew-core#80982 as the PR on homebrew-core which I assume is what Linuxbrew picked up.
i'm not sure of the expected behavior here, but it's trying to pull the bottle from https://ghcr.io/v2/linuxbrew
whereas it only exists right now at https://ghcr.io/v2/homebrew
.
as homebrew-core
is periodically merged into linuxbrew-core
, it looks like the homebrew-built bottle is meant to be manually removed so it can be rebuilt
here. doesn't look like that happened with these formulae (here is the failure for clang-format
)
i'll be honest I've just found a workaround and after a week or so of installation problems I want a break from debugging. I may come back to this, at least in part because it's faster than my current approach, but I don't know when