From 52a2e385bd5fcc94a5cc2fce780e24b904499dba Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 11 Jun 2024 08:17:24 +0200 Subject: fix(templates/rust/update.sh): Frist `upgrade` then `update` `cargo upgrade` raises the update boundaries in `Cargo.toml`, whilst `cargo update` just fetches the newest version (that conform to the boundaries) for `Cargo.lock`. --- templates/rust/update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/rust') diff --git a/templates/rust/update.sh b/templates/rust/update.sh index b34dabf..a0a029f 100755 --- a/templates/rust/update.sh +++ b/templates/rust/update.sh @@ -1,5 +1,6 @@ #!/usr/bin/env sh nix flake update -cargo update + [ "$1" = "upgrade" ] && cargo upgrade +cargo update -- cgit 1.4.1