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

Support .tool-versions files with multiple versions #716

Closed
jtannas opened this issue Mar 4, 2025 · 2 comments · Fixed by #717
Closed

Support .tool-versions files with multiple versions #716

jtannas opened this issue Mar 4, 2025 · 2 comments · Fixed by #717

Comments

@jtannas
Copy link
Contributor

jtannas commented Mar 4, 2025

ASDF supports having multiple different versions for each dependency.

ruby 3.1.6 3.2.4 3.3.3

From their docs:
Image

Source: https://asdf-vm.com/manage/configuration.html#tool-versions

This is very useful for gems that have to support multiple different versions of ruby.

Unfortunately setup-ruby crashes out when encountering this.

Image

Please add support for this feature of ASDF.

@eregon
Copy link
Member

eregon commented Mar 4, 2025

So I guess we should just pick the first version in such a case?
Please make a PR if you are interested in this.

@jtannas
Copy link
Contributor Author

jtannas commented Mar 4, 2025

So I guess we should just pick the first version in such a case?

Yep - ideally it'd mimic ASDF's resolution order of "try first, try second, etc..." but that's probably asking too much.

Please make a PR if you are interested in this.

Can do 👍

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

Successfully merging a pull request may close this issue.

2 participants