diff --git a/projects/nushell.sh/package.yml b/projects/nushell.sh/package.yml index 8c4130ee..f605b49c 100644 --- a/projects/nushell.sh/package.yml +++ b/projects/nushell.sh/package.yml @@ -19,12 +19,19 @@ build: cargo test test: + dependencies: + crates.io/semverator: '*' script: | dd if=/dev/zero count=1 bs=101 of=big dd if=/dev/zero count=1 bs=99 of=little OUT=$(nu -c 'ls | where size < 100b') test "$OUT" = "$FIXTURE" - nu -c 'fetch https://tea.xyz' + + if semverator lt {{version}} 0.75.0; then + nu -c 'fetch https://tea.xyz' + else + nu -c 'http get https://tea.xyz' + fi env: FIXTURE: | ╭───┬────────┬──────┬──────┬──────────╮