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

bug: asdf cannot be downgraded via homebrew #1892

Open
MihaiOnSoftware opened this issue Feb 5, 2025 · 1 comment
Open

bug: asdf cannot be downgraded via homebrew #1892

MihaiOnSoftware opened this issue Feb 5, 2025 · 1 comment
Labels

Comments

@MihaiOnSoftware
Copy link

MihaiOnSoftware commented Feb 5, 2025

Describe the Bug

asdf 0.16.0 has a lot of breaking changes which cause other tools in the ecosystem to break. For example RubyMine needs to be manually configured in a painful way. As a result it would be great to be able to downgrade until the rest of the ecosystem around asdf catches up. Considering that homebrew is the primary package manager and in fact one of the recommended ways of installing asdf, it would be ideal to be able to downgrade using it.

Steps to Reproduce

In the terminal run brew install [email protected] to try and install a previous version of asdf

Expected Behaviour

asdf 0.15.0 is installed

Actual Behaviour

==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
Warning: No available formula with the name "[email protected]".
==> Searching for similarly named formulae and casks...
Error: No formulae or casks found for [email protected].

Environment

Homebrew 4.4.20


OS:
Darwin Mihai-Popescu 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6020 arm64

SHELL:
zsh 5.9 (arm64-apple-darwin24.0)

BASH VERSION:
5.2.37(1)-release

ASDF VERSION:
0.16.1

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/<username>/.asdf
ASDF_CONFIG_FILE=/Users/<username>/.asdfrc

ASDF INSTALLED PLUGINS:
nodejs    https://github.com/asdf-vm/asdf-nodejs.git 9c4e0f27d760a33fb56c653c632b96d51ac3f8cf
python    https://github.com/danhper/asdf-python.git 5e277e24ec2b6739728f458c1c25eeb2a8b8bb79
ruby      https://github.com/asdf-vm/asdf-ruby.git   a76d00bb643f3528f31aaee9a7c246c449016419

asdf plugins affected (if relevant)

No response

@guilhermearaujo
Copy link

AFAIK you can't choose a version on homebrew, but you can downgrade to 0.15.0 doing this:

curl https://raw.githubusercontent.com/Homebrew/homebrew-core/bfbd802015ff065d868032c92e5092109882741b/Formula/a/asdf.rb -o asdf.rb
brew unlink asdf
brew install --formula asdf.rb
brew pin asdf # optional, if you want to avoid upgrading again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants