asdf-vm / asdf

Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
https://asdf-vm.com/
MIT License
21.14k stars 763 forks source link

[Feature Request] Separate "restrict to version X" and "install version X" functionalities #1765

Open DerekTBrown opened 1 week ago

DerekTBrown commented 1 week ago

Is your feature request related to a problem? Please describe

User Story

Describe the proposed solution

Introduce two features:

  1. noinstall Following a version in a .tool-versions file, a user can add noinstall:
golangci-lint 1.59.1 noinstall

This line is functionally skipped when running asdf install

  1. inherit In place of a version in a .tool-versions file, a user can specify inherit:
    golangci-lint inherit

Since this doesn't have the noinstall flag, the parent version would be installed.

Describe similar asdf features and why they are not sufficient

asdf doesn't have this functionality today.

Describe other workarounds you've considered