Skip to content

Track Cargo.lock to allow deterministic builds - #8

Merged
quapka merged 1 commit into
crocs-muni:mainfrom
quapka:cargo-lock
Dec 12, 2025
Merged

Track Cargo.lock to allow deterministic builds#8
quapka merged 1 commit into
crocs-muni:mainfrom
quapka:cargo-lock

Conversation

@quapka

@quapka quapka commented Dec 12, 2025

Copy link
Copy Markdown
Collaborator

The sentiment around version controlling Cargo.lock seems to differ/evolve a bit. The relevant SO answer quotes a bit dated answer from Rust FAQ [1] that libraries should not version control Cargo.lock. However, the current [2] answer rather makes the sentiment that there are cases, where the lock file is not respected. I would say that this is the burden of the user and actually being explicit about what Cargo.lock was succesfully used to build has its merit. It's, for example, needed also for deterministic builds that I am working on.

[1] https://stackoverflow.com/a/63967863
[2] https://doc.rust-lang.org/cargo/faq.html#why-have-cargolock-in-version-control

The sentiment around version controlling Cargo.lock seems to
differ/evolve a bit. The relevant SO answer quotes a bit dated answer
from Rust FAQ [1] that libraries should not version control Cargo.lock.
However, the current [2] answer rather makes the sentiment that there
are cases, where the lock file is not respected. I would say that this
is the burden of the user and actually being explicit about what
Cargo.lock was succesfully used to build has its merit. It's,
for example, needed also for deterministic builds that I am working on.

[1] https://stackoverflow.com/a/63967863
[2] https://doc.rust-lang.org/cargo/faq.html#why-have-cargolock-in-version-control
@quapka quapka mentioned this pull request Dec 12, 2025
@quapka
quapka merged commit 0a3fa1b into crocs-muni:main Dec 12, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

1 participant