Skip to content

Avoid breaking gem extensions when aliased Ruby becomes versioned formula #161546

@codiophile

Description

@codiophile

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

$ brew config
HOMEBREW_VERSION: 4.2.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: cfac516ee045d869be34598152e80a11ef2befe7
Last commit: 4 days ago
Core tap JSON: 31 Jan 15:24 UTC
Core cask tap JSON: 31 Jan 15:24 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: ["--no-quarantine"]
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: 3650
HOMEBREW_MAKE_JOBS: 4
HOMEBREW_NO_AUTO_UPDATE: set
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: quad-core 64-bit dunno
Clang: 15.0.0 build 1500
Git: 2.43.0 => /opt/homebrew/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.2.1-arm64
CLT: 15.1.0.0.1.1700200546
Xcode: 15.1
Rosetta 2: false

$ 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)?

Install ruby@3.2

What happened (include all command output)?

It installed, but didn't create all the required symlinks. Only:

lrwxr-xr-x 1 admin admin 24 Jan 31 15:29 ruby@3.2 -> ../Cellar/ruby@3.2/3.2.3

What did you expect to happen?

That it would create all required symlinks, as it did for 3.2.2:

lrwxr-xr-x 1 admin admin 22 Jan 4 17:53 ruby -> ../Cellar/ruby/3.2.2_1
lrwxr-xr-x 1 admin admin 22 Jan 4 17:53 ruby@3 -> ../Cellar/ruby/3.2.2_1
lrwxr-xr-x 1 admin admin 22 Jan 4 17:53 ruby@3.2 -> ../Cellar/ruby/3.2.2_1

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

brew install ruby@3.2

# You can then verify the symlinks using:
ls -al /opt/homebrew/opt/ruby*

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugReproducible Homebrew/homebrew-core bugin progressStale bot should stay away

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions