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 asdf .tool-versions File #459

Open
Kurt-von-Laven opened this issue Sep 7, 2023 · 2 comments
Open

Support asdf .tool-versions File #459

Kurt-von-Laven opened this issue Sep 7, 2023 · 2 comments
Labels
feature request New feature or request to improve the current logic needs eyes

Comments

@Kurt-von-Laven
Copy link

Description:
actions/setup-node, actions/setup-python, ruby/setup-ruby, and erlef/setup-beam all support reading from .tool-versions. It would be helpful to have such support consistently in all official setup actions.

Justification:
With over 18k stars and over 400 plugins, asdf is the most popular multi-language runtime manager. .tool-versions is becoming the de facto standard for pinning runtimes, package managers, and other development tools as most other standardized file formats support only one tool.

Are you willing to submit a PR?
No

@Kurt-von-Laven Kurt-von-Laven added feature request New feature or request to improve the current logic needs triage labels Sep 7, 2023
@nikolai-laevskii
Copy link
Contributor

Thank you for making a feature request! We will investigate possibilities for implementation and come back with an update.

@Kurt-von-Laven
Copy link
Author

In case it's helpful either for implementation purposes or for others wanting this feature, here is how we used to read the Python version out of .tool-versions. One would of course want to replace python with dotnet-core in this case, yielding something like the following Bash:

asdf_version="$(grep --perl-regexp --only-matching '(?<=dotnet-core\s).*' .tool-versions)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic needs eyes
Projects
None yet
Development

No branches or pull requests

2 participants