-
-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/bazel-watcher
- Loading branch information
Showing
17 changed files
with
201 additions
and
48 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 |
---|---|---|
|
@@ -71,6 +71,7 @@ feature-depth = 1 | |
# output a note when they are encountered. | ||
ignore = [ | ||
{ id = "RUSTSEC-2024-0370", reason = "subdependency cannot be updated" }, | ||
{ id = "RUSTSEC-2025-0007", reason = "subdependency cannot be updated" }, | ||
#"RUSTSEC-0000-0000", | ||
#{ id = "RUSTSEC-0000-0000", reason = "you can specify a reason the advisory is ignored" }, | ||
#"[email protected]", # you can also ignore yanked crate versions if you wish | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ The following installs zig and makes it the global default: | |
```sh | ||
mise use -g [email protected] # install zig 0.13.x | ||
mise use -g zig@latest # install latest zig release | ||
mise use -g zig@ref:master # instaLL latest nightly from master | ||
mise use -g zig@ref:master # install latest nightly from master | ||
mise use -g zig@ref:mach-latest # install latest nominated zig | ||
mise use -g [email protected]+271452d22 # install dev version | ||
``` | ||
|
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Describe 'shim_mode' { | ||
|
||
BeforeAll { | ||
function changeShimMode { | ||
param ( | ||
[string]$mode | ||
) | ||
|
||
mise settings windows_shim_mode $mode | ||
mise reshim --force | ||
} | ||
|
||
$shimPath = Join-Path -Path $env:MISE_DATA_DIR -ChildPath "shims" | ||
} | ||
|
||
AfterAll { | ||
mise settings unset windows_shim_mode | ||
} | ||
|
||
It 'run on symlink' { | ||
changeShimMode "symlink" | ||
|
||
mise x go@1.23.3 -- where go | ||
mise x go@1.23.3 -- go version | Should -BeLike "go version go1.23.3 windows/*" | ||
|
||
(Get-Item -Path (Join-Path -Path $shimPath -ChildPath go.exe)).LinkType | Should -Be "SymbolicLink" | ||
} | ||
|
||
It 'run on file' { | ||
changeShimMode "file" | ||
|
||
mise x go@1.23.3 -- where go | ||
mise x go@1.23.3 -- go version | Should -BeLike "go version go1.23.3 windows/*" | ||
|
||
(Get-Item -Path (Join-Path -Path $shimPath -ChildPath go.cmd)).LinkType | Should -Be $null | ||
} | ||
|
||
It 'run on hardlink' { | ||
mise settings windows_shim_mode "hardlink" | ||
|
||
# make mise is on same filesystem | ||
$misePath = (Get-Command -Type Application mise -all | Select-Object -First 1).Source | ||
$binPath = (Join-Path -Path $env:MISE_DATA_DIR -ChildPath "bin") | ||
$newMisePath = (Join-Path -Path $binPath -ChildPath "mise.exe") | ||
New-Item -ItemType Directory -Path $binPath -Force | ||
Copy-Item $misePath $newMisePath | ||
|
||
&$newMisePath reshim --force | ||
|
||
&$newMisePath x go@1.23.3 -- where go | ||
&$newMisePath x go@1.23.3 -- go version | Should -BeLike "go version go1.23.3 windows/*" | ||
|
||
(Get-Item -Path (Join-Path -Path $shimPath -ChildPath go.exe)).LinkType | Should -Be "HardLink" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
assert "mise outdated --json" "{}" | ||
assert "mise outdated" "" | ||
|
||
echo 'dummy 1' >.tool-versions | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
assert "mise install [email protected]" | ||
assert "ls $MISE_DATA_DIR/installs/dummy" "1 | ||
1.0 | ||
1.0.0 | ||
latest" | ||
assert "mise rm dummy" | ||
assert_empty "mise ls" | ||
assert_fail "ls $MISE_DATA_DIR/installs/dummy" | ||
|
||
assert "mise use [email protected]" | ||
assert_contains "mise ls dummy" "1.0.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
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
Oops, something went wrong.