When adding a new crate to firefox, dealing with constant merging of Cargo.lock is annoying from a developer ergonomic standpoint
Categories
(Firefox Build System :: General, enhancement)
Tracking
(firefox74 fixed)
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: chutten, Assigned: emilio)
Details
Attachments
(2 files)
When adding glean_preview to m-c I had a rather long time getting it into shape. Every time I rebased I had to deal with merge conflicts in Cargo.lock.
This wasn't particularly difficult, but also not particularly fun (and given the complexity it seems likely that I could've human error'd my way into a bad state).
I hear that there's a newer version for lock files (that Servo's using) where they're easier to merge. Maybe we could do that?
Comment 1•4 years ago
|
||
Just for completeness's sake, here is the initial issue for the new lockfile format:
https://github.com/rust-lang/cargo/pull/7070
Here is the issue for making it the default:
https://github.com/rust-lang/cargo/pull/7579
And here are the docs on how to do the translation:
I don't have a tree on this computer to see what things look like, but I'm willing to do the conversion when I have a tree again. Anybody else want to try? This would be a good time to try, as with the All-Hands in Berlin, the tree is fairly quiet.
Assignee | ||
Comment 2•4 years ago
|
||
Note that we may or may not need to update cbindgen at the same time. Not sure if the current version in-tree has the fix for https://github.com/eqrion/cbindgen/issues/436.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
v0.12.2 at least is needed to have proper v2 lockfile support.
But v0.13.0 contains extra fixes, and features that wgpu and the style system
plan to use, so let's just update to that.
Assignee | ||
Comment 4•4 years ago
|
||
Running cargo lock translate
, and then mach build (as the later does change
the whitespace in the lockfile).
Depends on D61334
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec9a62f6ff1c Update cbindgen. r=froydnj https://hg.mozilla.org/integration/autoland/rev/2987e628bb59 Update to the new Cargo.lock format. r=froydnj
Comment 6•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ec9a62f6ff1c
https://hg.mozilla.org/mozilla-central/rev/2987e628bb59
Description
•