From 99fe279311cf3028930522c0646f9bc70e4451de Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Tue, 14 Nov 2023 18:19:19 +0100 Subject: [PATCH] Change `nu-deps` script to not care about waves (#667) The script was running endlessly for me and the notion of crate waves may be out of date, after removing them and manually aligning the output with the relevant crate waves things went smooth. --- make_release/nu_deps.nu | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/make_release/nu_deps.nu b/make_release/nu_deps.nu index 5e02011c..c5ebd198 100644 --- a/make_release/nu_deps.nu +++ b/make_release/nu_deps.nu @@ -26,26 +26,21 @@ def get-target-dependencies [] { # For each Nushell crate in the first publishing wave, open its Cargo.toml and # gather its dependencies. def find-deps [] { - let second_wave = [ 'nu-command' ] - let third_wave = [ 'nu-cli' ] - ls crates/nu-*/Cargo.toml | get name | each {|toml| let crate = ($toml | path dirname | path basename) let data = (open $toml) - if not (($crate in $second_wave) or ($crate in $third_wave)) { - mut deps = [] - $deps ++= ($data | get -i 'dependencies' | default {} | columns) - $deps ++= ($data | get -i 'dev-dependencies' | default {} | columns) - $deps ++= ($data | get-target-dependencies) - let $deps = ($deps - | where ($it | str starts-with 'nu-') - | where not ($it == 'nu-ansi-term')) + mut deps = [] + $deps ++= ($data | get -i 'dependencies' | default {} | columns) + $deps ++= ($data | get -i 'dev-dependencies' | default {} | columns) + $deps ++= ($data | get-target-dependencies) + let $deps = ($deps + | where ($it | str starts-with 'nu-') + | where not ($it == 'nu-ansi-term')) - { - 'crate': $crate - 'dependencies': $deps - } + { + 'crate': $crate + 'dependencies': $deps } } }