Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR proposes reintroducing
Cargo.lockinto the repository.I’ve read the rationale for removing it in taiki-e/cargo-llvm-cov#152, but I believe the situation has evolved and that the original concerns no longer outweigh the practical and security-related benefits of committing it:
test-helperdev dependency, running cargo to make it add it to the locked dependencies, and committing the final Cargo.lock into the aports repo 1). This workaround undermines the otherwise smooth and reliable packaging and ease of installation experience that Rust projects are known for. For other less attentive distros, which somehow fail to notice that dependencies are not locked, this makes the build non-reproducible.test-helperdev-dependency, so it cannot even be taken as-is if the build needs dev-dependencies (for example for running tests).cargo install --git, which may come necessary in some cases (like installing the latest revision), doesn't use locked dependencies.Footnotes
example https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/84637 ↩