Skip to content

Commit

Permalink
remove pkgs before adding them
Browse files Browse the repository at this point in the history
otherwise, they could get in conflict.
  • Loading branch information
amtoine committed May 26, 2024
1 parent 10aa8cf commit 18fd4fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/deps.nu
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ export def main [
}
}

let dependencies = open Cargo.toml | get dependencies
for pkg in $PKGS {
if $pkg in $dependencies {
cargo remove $pkg
}
}

for pkg in $PKGS {
cargo add $pkg --git $NUSHELL_REMOTE ...$opts
}
Expand Down

0 comments on commit 18fd4fe

Please sign in to comment.