You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This action calls cargo generate-lockfile, which overwrites Cargo.lock according to cargo docs1
This command will create the Cargo.lock lockfile for the current package or workspace. If the lockfile already exists, it will be rebuilt with the latest available version of every package.
This negates the purpose of having a checked-in lockfile.
Copying actions-rs#163 to this fork.
Description
This action calls
cargo generate-lockfile
, which overwritesCargo.lock
according tocargo
docs1This negates the purpose of having a checked-in lockfile.
Proposed Fix
actions-rs#163 (comment)
Rather than call
cargo generate-lockfile
, callcargo metadata --format-version=1 >/dev/null
instead.Footnotes
https://doc.rust-lang.org/cargo/commands/cargo-generate-lockfile.html ↩
The text was updated successfully, but these errors were encountered: