setup-julia icon indicating copy to clipboard operation
setup-julia copied to clipboard

[Feature Request] Support `.tool-versions` files

Open devmotion opened this issue 2 years ago • 1 comments

asdf-vm allows to specify project dependencies such as python, poetry, nodejs, ..., and julia in .tool-versions files. This is very convenient in particular in projects that involve multiple tools besides julia and when working on different projects with different versions of these tools.

The actions/setup-node Github action allows to specify the desired version of nodejs by providing the location of a .tool-versions file: https://github.com/actions/setup-node/blob/72c43c2d8fa01b0e1ca5fc3f8cb258c8d8bd286d/action.yml#L10-L11 A similar functionality was also requested for the actions/setup-python action: https://github.com/actions/setup-python/issues/571 https://github.com/actions/setup-python/pull/588

IMO a similar functionality (with a version-file input?) for julia-actions/setup-julia would be very useful:

  • Currently asdf does not support Windows, but if one would like to run CI with windows one could install Julia with setup-julia instead, in a way that ensures that the installed Julia version is consistent with the .tool-versions file.
  • Currently the official asdf Github action does not support installation of only a subset of plugins, but it would be easy to only install Julia with setup-julia if the .tool-versions file format would be supported.

devmotion avatar Oct 02 '23 11:10 devmotion

I like the idea, I'll take a look at implementing it.

SaschaMann avatar Oct 04 '23 10:10 SaschaMann