Skip to content

Commit

Permalink
Fix auto cargo updates
Browse files Browse the repository at this point in the history
I was messing around with `cargo audit` and `cargo outdated` and realized I
broke the auto-update of cargo.

When I switched from using `cargo update` to `cargo upgrade`, I didn't realize
that `cargo upgrade` doesn't update the `Cargo.lock` file.

I only noticed because `cargo audit` was reporting a yanked version of libc and
running `cargo update` fixed it.

I added running `cargo outdated` as a sanity check that things are updating
correcty.
  • Loading branch information
willbush committed May 20, 2024
1 parent 5463922 commit edb7635
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ let
];
text = ''
echo "<details><summary>cargo changes</summary>"
echo ""
echo "### cargo upgrade"
printf "\n\`\`\`\n"
# --incompatible allows jumping to the next major version.
cargo upgrade --incompatible --manifest-path "$1/Cargo.toml" 2>&1
Expand Down

0 comments on commit edb7635

Please sign in to comment.