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

Commit the Cargo.lock file #95

Open
carschandler opened this issue Apr 23, 2024 · 0 comments
Open

Commit the Cargo.lock file #95

carschandler opened this issue Apr 23, 2024 · 0 comments

Comments

@carschandler
Copy link

carschandler commented Apr 23, 2024

Was trying to package leetup using nix, and it requires the Cargo.lock file to be in the source repository:

From the nixpkgs manual:

Per the instructions in the Cargo Book best practices guide, Rust applications should always commit the Cargo.lock file in git to ensure a reproducible build. However, a few packages do not, and Nix depends on this file, so if it is missing you can use cargoPatches to apply it in the patchPhase. Consider sending a PR upstream with a note to the maintainer describing why it’s important to include in the application.
The fetcher will verify that the Cargo.lock file is in sync with the src attribute, and fail the build if not. It will also will compress the vendor directory into a tar.gz archive.

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

1 participant