Snapcraft Rust Plugin Does not Respect Cargo.lock
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
Abandoned and closed without resolution. The Snapcraft Rust plugin continues to ignore Cargo.lock files, causing dependency resolution mismatches during automated builds.
Suggested action: —
No scores available.
Issue body
Original forum topic: https://forum.snapcraft.io/t/does-snapcrafts-rust-plugin-respect-the-cargo-lock-file/14776?u=zicklag.
I have a Rust project that is getting built with build.snapcraft.io service and I noticed that the automated builds are not respecting the `Cargo.lock` file that is included in my project's source. Instead, the snapcraft build is acting if the lock file was not there and using the latest updated versions of all of the crates declared in my `Cargo.toml` file. This causes problems because an updated dependency is getting used that causes the project not to compile.
Granted, the fact that an updated dependency can cause a compile to fail on my project likely indicates that a crate I'm depending on is not correctly following semantic versioning, but regardless, the fact that snapcraft is not respecting the lock file could result in even harder to notice bugs because the snapcraft builds are going to be different than the builds made without snapcraft.
For an example of the failure:
build.snapcraft.io build log ( which failed ): https://build.snapcraft.io/user/katharostech/lucky/772273
my CI build log ( which succeeded ): https://cloud.drone.io/katharostech/lucky/259/1/2
The commit of my project: https://github.com/katharostech/lucky/tree/9079bbcb46bb8df4ed73c9a10f5eb6dc8f92772f
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Abandoned and closed without resolution. The Snapcraft Rust plugin continues to ignore Cargo.lock files, causing dependency resolution mismatches during automated builds. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed with zero comments and no resolution details. The Snapcraft Rust plugin failure to respect Cargo.lock remains unaddressed and appears abandoned. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The report was abandoned due to inactivity, with no comments, fixes, or merge requests linked to address the Cargo.lock dependency resolution issue. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5217 Snapcraft conflates standard PyPI packages with local plugins | snapcraft | closed | Closed and abandoned publicly, moved to internal tracking (Jira CRAFT-4003). A PyPI package named 'rust' conflicts with Snapcraft's built-in plugin, causing incorrect local plugin loading. No fix implemented. | |
| #1561546 Snapcraft clean removes local plugins | snapcraft (launchpad) | closed | Closed without a documented fix or resolution. The bug where snapcraft clean incorrectly removes local plugins remains unaddressed, likely abandoned due to prolonged inactivity. | |
| #1721656 Snapcraft rust plugin doesn't suport workspaces | snapcraft (launchpad) | closed | Closed without implementation. The request to enable Rust workspace support in the Snapcraft rust plugin via cargo build --all received no discussion and was abandoned. | |
| #1467 rust plugin: new rustup | snapcraft | closed | Closed without resolution or comments, likely abandoned or superseded by subsequent snapcraft updates. No merge details or discussion were provided. | |
| #1688151 snapcraft pull doesn't save the installed build dependencies | snapcraft (launchpad) | closed | Closed without comments or resolution. The bug where snapcraft pull omitted build package dependencies from the pull state file was abandoned. |