Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: provide the Cargo.lock file #43

Closed
dbermond opened this issue Feb 22, 2021 · 1 comment
Closed

Request: provide the Cargo.lock file #43

dbermond opened this issue Feb 22, 2021 · 1 comment

Comments

@dbermond
Copy link

Please consider providing the Cargo.lock file. This file is important, from a packaging point of view, for making reproducible builds.

Without the lockfile, a given version of this project cannot be reproducible over time, as the dependencies will get updated. Using a lockfile with the --locked option in cargo commands (like cargo build) will ensure that the dependencies will not be updated, allowing the build to be reproducible. It can also prevent possible build problems when a dependency is updated.

As far as I'm aware, the lockfile can be automatically generated by GitHub actions when tagging a release (in the case that it's considered too much inconvenient to be carried in the source tree).

A quote from the cargo install documentation better explains the importance of the lockfile:

The --locked flag can be used to force Cargo to use the packaged Cargo.lock file if it is available. This may be useful for ensuring reproducible builds, to use the exact same set of dependencies that were available when the package was published. It may also be useful if a newer version of a dependency is published that no longer builds on your system, or has other problems.

@vosen
Copy link
Owner

vosen commented Apr 30, 2024

Done as of #206

@vosen vosen closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants