mach vendor rust tries to install cargo-vendor without installing its dependencies first

NEW
Unassigned

Status

Firefox Build System
Mach Core
a year ago
5 months ago

People

(Reporter: hsivonen, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Steps to reproduce:
 1) Use a Ubuntu system with default packages plus the packages installed by ./mach bootstrap
 2) Run ./mach vendor rust

Actual results:
mach proceeds to run cargo install cargo-vendor, which fails due to various -dev packages for the C dependencies missing from the system.

Expected results:
Expected mach to offer to use apt to install cmake, libgit2-dev, libssh2-1-dev and libssl-dev first. (Probably some libcurl packages, too. Not sure. Maybe I had those already.)
Sorry, it wasn't my intent for `mach vendor rust` to be a complete package manager. :) I put the `cargo install` bit in there for convenience, but maybe instead it should just tell the user to install it themselves along with any necessary prerequisites?
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #1)
> Sorry, it wasn't my intent for `mach vendor rust` to be a complete package
> manager. :) I put the `cargo install` bit in there for convenience, but
> maybe instead it should just tell the user to install it themselves along
> with any necessary prerequisites?

If "mach bootstrap"-like apt integration is out of the question, then just telling the user to install cargo-vendor with a remark about its non-cargo dependencies would be better than the status quo.
Duplicate of this bug: 1369320

Updated

5 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.