mach vendor rust should use native cargo vendor
Categories
(Firefox Build System :: Bootstrap Configuration, defect)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: heycam, Assigned: glandium)
References
Details
Attachments
(1 file)
mach vendor rust
installs cargo-vendor
if it's not already installed. It does that through cargo install cargo-vendor
. That fails if the libssl headers are not installed. On my Ubuntu 19.04 machine, I needed to apt install libssl-dev
to get that working. mach bootstrap
should install this package for me.
Assignee | ||
Comment 1•6 years ago
|
||
cargo vendor
is a native tool now. mach vendor rust
should use it instead of installing cargo-vendor
. Although, looking around, it's not on release yet. Only on beta. So it should be released in 1.37... which is due... tomorrow?
That said, even considering the installation of cargo-vendor, it's not mach bootstrap's job to ensure cargo-vendor's dependencies. It's more mach vendor's job.
Comment 2•6 years ago
|
||
So, interestingly, with Rust 1.37 ./mach vendor rust
just plain fails to me. It calls cargo vendor --quiet --sync Cargo.lock
which ends up calling the standard cargo vendor
, for which --sync
expects a TOML file, not a LOCK file...
Assignee | ||
Comment 3•6 years ago
|
||
Note that cargo vendor always uses the native version even when
cargo-vendor was already installed, so there is no concern wrt that.
Comment 4•6 years ago
|
||
For some reason, I had an issue with cargo vendor on my machine, when using mach vendor rust:
error: failed to parse manifest at `/home/ben/code/mozilla-inbound/Cargo.lock`
Caused by:
invalid type: map, expected a string for key `package`
I have no idea where it came from, nor did I know how to fix it. nalexander on irc spotted this patch and asked me to try it, and importing it had the issue disappear.
Comment 5•6 years ago
|
||
Benjamin, yes, that's what I described in Comment 2. Cargo is being fed a "Cargo.lock" file where it expects a TOML.
Comment 7•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Description
•