Skip to content

Commit 7fcbf54

Browse files
authored
fix: update modules/virtual_environments/nu_msvs to work with nushell 0.91.0 (#784)
Fixed the `glob` related code as mentioned in title.
1 parent bc6273d commit 7fcbf54

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/virtual_environments/nu_msvs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ A module for Using Microsoft Visual Studio (MSVS) command line tools from Nushel
33

44

55
## Prerequisites
6-
- [nushell](https://github.com/nushell/nushell) >= 0.83.0
6+
- [nushell](https://github.com/nushell/nushell) >= 0.91.0
77
- [vswhere](https://github.com/microsoft/vswhere) standalone or comes with VS
88

99

modules/virtual_environments/nu_msvs/nu_msvs.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export-env {
1414
$env.MSVS_MSVC_ROOT = (
1515
if not ($"($env.MSVS_ROOT)/VC/Tools/MSVC/" | path exists) {
1616
""
17-
} else if (ls $"($env.MSVS_ROOT)/VC/Tools/MSVC/*" | is-empty) {
17+
} else if (ls ($"($env.MSVS_ROOT)/VC/Tools/MSVC/*" | into glob) | is-empty) {
1818
""
1919
} else {
20-
((ls $"($env.MSVS_ROOT)/VC/Tools/MSVC/*").name.0 | str replace -a '\\' '/')
20+
((ls ($"($env.MSVS_ROOT)/VC/Tools/MSVC/*" | into glob)).name.0 | str replace -a '\\' '/')
2121
})
2222

2323
$env.MSVS_MSDK_ROOT = (registry query --hklm 'SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0' InstallationFolder | get value)

0 commit comments

Comments
 (0)