diff --git a/meta.json b/meta.json index a376db812..37dc5a5e7 100644 --- a/meta.json +++ b/meta.json @@ -1,7 +1,7 @@ { "name": "nushell", - "version": "0.105.1", - "revision": 2, + "version": "0.106.0", + "revision": 0, "pkgs": { "deb": true, "rpm": true, @@ -13,4 +13,4 @@ "github": "https://github.com/nushell/nushell", "home": "https://www.nushell.sh", "description": "A new type of shell." -} \ No newline at end of file +} diff --git a/nu/release.nu b/nu/release.nu index 29f61a12c..a1fce748e 100644 --- a/nu/release.nu +++ b/nu/release.nu @@ -31,7 +31,7 @@ export def 'fetch release' [ amd64: 'x86_64-unknown-linux-musl', arm64: 'aarch64-unknown-linux-musl', riscv64: 'riscv64gc-unknown-linux-gnu', - loongarch64: 'loongarch64-unknown-linux-gnu', + loongarch64: 'loongarch64-unknown-linux-musl', } if $arch not-in $ARCH_MAP { print $'Invalid architecture: (ansi r)($arch)(ansi reset)'; exit 1 @@ -110,7 +110,7 @@ export def 'push pkg' [ ] { # Normalize architecture based on alias map if needed let normalized_arch = if $type in [apk, rpm] { - $ARCH_ALIAS_MAP | get -i $arch | default $arch + $ARCH_ALIAS_MAP | get -o $arch | default $arch } else { $arch } # Get package file based on architecture and type diff --git a/nu/tests.nu b/nu/tests.nu index 804d9e3e0..856030264 100644 --- a/nu/tests.nu +++ b/nu/tests.nu @@ -163,8 +163,8 @@ export def compare-ver [v1: string, v2: string] { # If you want to compare more parts use the following code: # for i in 0..([2 ($a | length) ($b | length)] | math max) for i in 0..2 { - let x = $a | get -i $i | default 0 - let y = $b | get -i $i | default 0 + let x = $a | get -o $i | default 0 + let y = $b | get -o $i | default 0 if $x > $y { return 1 } if $x < $y { return (-1) } }