version-fox / version-fox/vfox

[Feature]: support .tool-versions in parent directories

Open
#269 3 comments 4 reactions 1 assignee View on GitHub

@aooohan is already working on this.

Since May 20, 2024.

enhancement
Dominant language
Go
Stars
4k
Forks
157
Avg merge
1h 3m
Merged PRs (30d)
5

Description

asdf supports creating a .tool-versions in some directory. These versions are used in this directory and all sub-directories (see)

1. Your usage scenarios?

create following structure

test 
- .tool-versions => nodejs 21.x
- foo 
- - .tool-versions => nodejs 22.x
- bar
- - no tool-versions

If I access ~/test/bar I always want to have Node Versoin 21.x active. At the moment the previous node version is active

image
2. What is your expected outcome?

The idea is that I can automatically activate the respective version for certain folder structures without having to actively maintain this in each directory.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.