Skip to content

Commit e1db787

Browse files
authored
docs: add faq on version ranges in .tool-versions files (#2091)
1 parent 859aa28 commit e1db787

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/more/faq.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ Think of `.tool-versions` file as `Gemfile.lock` or `package-lock.json`. It is a
3333
Note that the `system` version is allowed in `.tool-versions` files, and it could resolve to different versions when used. It is a special value that effectively disables asdf for a particular tool in the given directory.
3434

3535
See issue https://github.com/asdf-vm/asdf/issues/1012
36+
37+
## Why can't version ranges be used in the `.tool-versions` files?
38+
39+
Similar to the question above on the use of `latest`. With a version range specified, asdf would be free to choose any installed version in the specified range. This could result in different behavior across machines if they have different versions installed. The intent is for asdf to be fully deterministic so the same `.tool-versions` file produces the exact same environment across time and across different computers.
40+
41+
See issue https://github.com/asdf-vm/asdf-nodejs/issues/235#issuecomment-885809776

0 commit comments

Comments
 (0)