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 extract creates a class name with @ symbol instead of AT #16881

Closed
3 tasks done
kcaashish opened this issue Mar 12, 2024 · 2 comments
Closed
3 tasks done

brew extract creates a class name with @ symbol instead of AT #16881

kcaashish opened this issue Mar 12, 2024 · 2 comments
Labels
bug Reproducible Homebrew/brew bug stale No recent activity

Comments

@kcaashish
Copy link

kcaashish commented Mar 12, 2024

brew doctor output

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 kegs have no formulae!
This means they were either deleted or installed manually.
You should find replacements for the following formulae:
  go-task
  mc
  coursier
  vault

Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
  git -C $(brew --repo user/local-protobuf21) checkout
  git -C $(brew --repo user/local-mc) checkout
  git -C $(brew --repo user/local-minio) checkout

Verification

  • My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update twice and am still able to reproduce my issue.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

HOMEBREW_VERSION: 4.2.12-19-gb1990ed
ORIGIN: https://github.com/Homebrew/brew
HEAD: b1990ed4b6668bf5dc0993807e9525cf1c08051a
Last commit: 3 hours ago
Core tap HEAD: cd31c9956bd24474f7d4d2f2bf697f4a042e70b5
Core tap last commit: 42 minutes ago
Core tap JSON: 12 Mar 11:37 UTC
Core cask tap JSON: 12 Mar 11:37 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: nvim
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.44.0 => /opt/homebrew/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.4-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.3
Rosetta 2: false

What were you trying to do (and why)?

Trying to create a local tap to install an older version of minio.

What happened (include all command output)?

  1. Created a new tap
brew tap-new local-minio
  1. Extracted the desired version
brew extract --version RELEASE.2024-03-05T04-48-44Z minio/stable/minio user/local-minio
  1. Ran brew install
brew install [email protected]
Error: user/local-minio/[email protected]: undefined method `<' for nil:NilClass

After checking the formula with brew edit found out that the name of the class was

class Minio@release20240305T044844Z < Formula

which was causing the error.

What did you expect to happen?

Expected the formula to install.

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

brew tap-new local-minio
brew extract --version RELEASE.2024-03-05T04-48-44Z minio/stable/minio user/local-minio
brew install [email protected]
@kcaashish kcaashish added the bug Reproducible Homebrew/brew bug label Mar 12, 2024
@Bo98
Copy link
Member

Bo98 commented Mar 12, 2024

Formulae generally only support numerical versions after the @. The fix here is either one of:

  • Make brew extract aware of the restrictions and strip down the version accordingly
  • Widen support for allowed versioned formula names (potentially for third-party taps only)

Copy link

github-actions bot commented Apr 3, 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 No recent activity label Apr 3, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/brew bug stale No recent activity
Projects
None yet
Development

No branches or pull requests

2 participants