knope icon indicating copy to clipboard operation
knope copied to clipboard

Update Lock Files

Open dbanty opened this issue 3 years ago • 2 comments

Right now, only the metadata file (Cargo.toml, pyproject.toml, package.json) is updated and not the equivalent lockfile (cargo.lock, poetry.lock, package-lock.json) (the last one might not keep the package version). This leaves inconsistencies that will get updated the next time a user does anything with the package which is less than ideal.

Any supported package manager (so Cargo, Poetry, and NPM right now) should not leave any work to-do after bumping a version.

dbanty avatar Mar 26 '22 23:03 dbanty

For anyone running into it, here's a workaround:

after each PrepareRelease, run `cargo build, before commiting.

This should prevent it from ever desynchronizing until this issue is fixed.

ghost avatar Jan 13 '24 00:01 ghost

For a more minimal command that won't update your dependencies, try cargo update -w.

BatmanAoD avatar Jan 13 '24 05:01 BatmanAoD

0.18.0 will have support for Cargo.lock 🥳. We can open new issues for additional lock file formats

dbanty avatar Aug 18 '24 05:08 dbanty