-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use mise.toml instead of .mise.toml by default in
mise use
- Loading branch information
Showing
7 changed files
with
49 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
export MISE_LOCKFILE=1 | ||
export MISE_EXPERIMENTAL=1 | ||
|
||
touch .mise.lock | ||
touch mise.lock | ||
mise install [email protected] | ||
mise use tiny@1 | ||
mise install [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,37 +3,37 @@ | |
export MISE_LOCKFILE=1 | ||
export MISE_EXPERIMENTAL=1 | ||
|
||
touch .mise.lock | ||
touch mise.lock | ||
mise install [email protected] | ||
mise use tiny@1 | ||
mise install [email protected] | ||
assert "mise config get -f .mise.toml tools.tiny" "1" | ||
assert "mise config get -f mise.toml tools.tiny" "1" | ||
assert "mise where tiny" "$MISE_DATA_DIR/installs/tiny/1.0.0" | ||
assert "mise ls tiny --json --current | jq -r '.[0].requested_version'" "1" | ||
assert "mise ls tiny --json --current | jq -r '.[0].version'" "1.0.0" | ||
assert "cat .mise.lock" '[tools] | ||
assert "cat mise.lock" '[tools] | ||
tiny = "1.0.0"' | ||
|
||
mise use tiny@1 | ||
assert "cat .mise.lock" '[tools] | ||
assert "cat mise.lock" '[tools] | ||
tiny = "1.0.1"' | ||
assert "mise ls tiny --json --current | jq -r '.[0].requested_version'" "1" | ||
assert "mise ls tiny --json --current | jq -r '.[0].version'" "1.0.1" | ||
|
||
mise up tiny | ||
assert "cat .mise.lock" '[tools] | ||
assert "cat mise.lock" '[tools] | ||
tiny = "1.1.0"' | ||
assert "mise ls tiny --json --current | jq -r '.[0].requested_version'" "1" | ||
assert "mise ls tiny --json --current | jq -r '.[0].version'" "1.1.0" | ||
|
||
mise up tiny --bump | ||
assert "cat .mise.lock" '[tools] | ||
assert "cat mise.lock" '[tools] | ||
tiny = "3.1.0"' | ||
assert "mise ls tiny --json --current | jq -r '.[0].requested_version'" "3" | ||
assert "mise ls tiny --json --current | jq -r '.[0].version'" "3.1.0" | ||
|
||
mise use tiny@1 tiny@2 | ||
assert "cat .mise.lock" '[tools] | ||
assert "cat mise.lock" '[tools] | ||
tiny = [ | ||
"1.0.0", | ||
"2.1.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters