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

Unable to install git-delta using --HEAD: No available formula with the name "<hash>--git-delta". #162946

Closed
4 tasks done
allanlewis opened this issue Feb 16, 2024 · 2 comments · Fixed by Homebrew/brew#16684 or Homebrew/brew#16689
Labels
bug Reproducible Homebrew/homebrew-core bug outdated PR was locked due to age

Comments

@allanlewis
Copy link

brew gist-logs <formula> link OR brew config AND brew doctor output

$ brew config
HOMEBREW_VERSION: 4.2.8-125-ga6d539c
ORIGIN: https://github.com/Homebrew/brew
HEAD: a6d539cf11a0db5a2c0f6fb78ff1ed09bf576a93
Last commit: 2 hours ago
Core tap HEAD: a44bd8e98ffee5f800a1c5c94532892ffdcfe822
Core tap last commit: 3 hours ago
Core tap JSON: 16 Feb 12:15 UTC
Core cask tap HEAD: 6ccea989d283d805b18b2cc0069c3c1ca0aba98f
Core cask tap last commit: 68 minutes ago
Core cask tap JSON: 16 Feb 12:15 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BOOTSNAP: set
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: nano
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.1.4 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 15.0.0 build 1500
Git: 2.43.2 => /usr/local/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.3.1-x86_64
CLT: 15.1.0.0.1.1700200546
Xcode: N/A
$ brew doctor
Your system is ready to brew.

Verification

  • My "brew doctor output" says Your system is ready to brew. and am still able to reproduce my issue.
  • 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.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

I want to install the latest git-delta from GitHub to see if an issue I'm having has been resolved since the last release.

What happened (include all command output)?

I get the following output when trying to install git-delta using --HEAD, having unlinked the released version:

Error: No available formula with the name "b9bbfd7106b22cae9c83ca6e70ba2c8e60082fd0dd448dacc5bb7cc7910da326--git-delta".
In formula file: /Users/allanlewis/Library/Caches/Homebrew/downloads/b9bbfd7106b22cae9c83ca6e70ba2c8e60082fd0dd448dacc5bb7cc7910da326--git-delta.rb
Expected to find class B9bbfd7106b22cae9c83ca6e70ba2c8e60082fd0dd448dacc5bb7cc7910da326-GitDelta, but only found: GitDelta.

What did you expect to happen?

I expect the latest git-delta to be installed based on the default branch of its GitHub repository.

Step-by-step reproduction instructions (by running brew commands)

$ brew install git-delta --HEAD
Error: git-delta 0.16.5 is already installed
To install HEAD, first run:
  brew unlink git-delta
$ brew unlink git-delta
Unlinking /usr/local/Cellar/git-delta/0.16.5... 4 symlinks removed.
$ brew install git-delta --HEAD
==> Downloading https://formulae.brew.sh/api/formula.jws.json

==> Downloading https://formulae.brew.sh/api/cask.jws.json

==> Fetching dependencies for git-delta: z3, llvm and rust
==> Fetching z3
==> Downloading https://ghcr.io/v2/homebrew/core/z3/manifests/4.12.5
Already downloaded: /Users/REDACTED/Library/Caches/Homebrew/downloads/8908326288d17da0eaf0e186e59b754b56dc74e079b37038b8edda6a92aff3c8--z3-4.12.5.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/z3/blobs/sha256:b250b89ec1de9431df7d9da9a07491f7059eadcfe345aa3eba0613593bdcc25a
Already downloaded: /Users/REDACTED/Library/Caches/Homebrew/downloads/0f6e116bb7aa5ce0a159e2aa10369cd1d5ace815235921978637c9ef6f6c093d--z3--4.12.5.sonoma.bottle.tar.gz
==> Fetching llvm
==> Downloading https://ghcr.io/v2/homebrew/core/llvm/manifests/17.0.6_1
Already downloaded: /Users/REDACTED/Library/Caches/Homebrew/downloads/31875df61a80d300518ae2279d1e5bf108644d39244dd005559829419130a2ea--llvm-17.0.6_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/llvm/blobs/sha256:64bf45f23f2383baa228cb035caa78d659c9d5f8fc23dd1cfbec9aad7be588cc
Already downloaded: /Users/REDACTED/Library/Caches/Homebrew/downloads/713197df0a1499b781c839ed6f26a05f72b11f35af51de67ec057338422ac46c--llvm--17.0.6_1.sonoma.bottle.tar.gz
==> Fetching rust
==> Downloading https://ghcr.io/v2/homebrew/core/rust/manifests/1.76.0
Already downloaded: /Users/REDACTED/Library/Caches/Homebrew/downloads/a7cb7b980db0fadbb731e5df340844453cc2106a025a68c29a607960908efa8d--rust-1.76.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/rust/blobs/sha256:1de1aada2510c88922984909316f75e1ab5a47babcfd3cdc59d7aa74f23dab6b
Already downloaded: /Users/REDACTED/Library/Caches/Homebrew/downloads/f6a38becccdfa9e9f785a9ba73dd9564e72f10b7c84fd1a6ec4be27305e47f95--rust--1.76.0.sonoma.bottle.tar.gz
==> Fetching git-delta
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/a44bd8e98ffee5f800a1c5c94532892ffdcfe822/Formula/g/git-delta.rb
Already downloaded: /Users/REDACTED/Library/Caches/Homebrew/downloads/b9bbfd7106b22cae9c83ca6e70ba2c8e60082fd0dd448dacc5bb7cc7910da326--git-delta.rb
Error: No available formula with the name "b9bbfd7106b22cae9c83ca6e70ba2c8e60082fd0dd448dacc5bb7cc7910da326--git-delta".
In formula file: /Users/REDACTED/Library/Caches/Homebrew/downloads/b9bbfd7106b22cae9c83ca6e70ba2c8e60082fd0dd448dacc5bb7cc7910da326--git-delta.rb
Expected to find class B9bbfd7106b22cae9c83ca6e70ba2c8e60082fd0dd448dacc5bb7cc7910da326-GitDelta, but only found: GitDelta.
@allanlewis
Copy link
Author

@MikeMcQuaid thanks for the quick response 🙏

@allanlewis
Copy link
Author

I can confirm that brew install git-delta --HEAD now gets past this error; I'd expect any subsequent failures to be a different issue.

reitermarkus added a commit to reitermarkus/brew that referenced this issue Feb 16, 2024
reitermarkus added a commit to reitermarkus/brew that referenced this issue Feb 17, 2024
reitermarkus added a commit to reitermarkus/brew that referenced this issue Feb 17, 2024
reitermarkus added a commit to reitermarkus/brew that referenced this issue Feb 22, 2024
@github-actions github-actions bot added the outdated PR was locked due to age label Mar 17, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/homebrew-core bug outdated PR was locked due to age
Projects
None yet
1 participant