-
Notifications
You must be signed in to change notification settings - Fork 323
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
13 changed files
with
70 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -339,13 +339,12 @@ Uses [dotenvy](https://crates.io/crates/dotenvy) under the hood. | |
Set the version for a runtime. For example, `MISE_NODE_VERSION=20` will use <[email protected]> regardless | ||
of what is set in `.tool-versions`/`.mise.toml`. | ||
|
||
### `MISE_USE_TOML=0` | ||
### `MISE_USE_TOML=1` | ||
|
||
Set to `1` to default to using `.mise.toml` in `mise local` instead of `.tool-versions` for | ||
Set to `0` to default to using `.tool-verisons` in `mise local` instead of `mise.toml` for | ||
configuration. | ||
|
||
For now this is not used by `mise use` which will only use `.mise.toml` unless `--path` is | ||
specified. | ||
This is not used by `mise use` which will only use `mise.toml` unless `--path` is specified. | ||
|
||
### `MISE_TRUSTED_CONFIG_PATHS` | ||
|
||
|
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
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
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