From 4e409556f8f6f0e5fbc55bed371dfa834f1b713b Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 31 Jan 2023 17:42:43 -0500 Subject: [PATCH] fix(nushell) API change --- projects/nushell.sh/package.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: | ╭───┬────────┬──────┬──────┬──────────╮