Closed Bug 1385131 Opened 7 years ago Closed 5 years ago

Use cargo vendor --version to check version of cargo-vendor

Categories

(Firefox Build System :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox57 wontfix)

RESOLVED WONTFIX
Tracking Status
firefox57 --- wontfix

People

(Reporter: xidorn, Assigned: xidorn)

Details

Attachments

(1 file)

This flag was added in alexcrichton/cargo-vendor#37 (since 0.1.11).
Comment on attachment 8891123 [details]
Bug 1385131 - Use --version for checking version of cargo-vendor.

https://reviewboard.mozilla.org/r/162306/#review172816

::: python/mozbuild/mozbuild/vendor_rust.py:45
(Diff revision 1)
>      def check_cargo_vendor_version(self, cargo):
>          '''
>          Ensure that cargo-vendor is new enough. cargo-vendor 0.1.11 and newer
>          strips out .orig and .rej files which we want.
>          '''
> -        for l in subprocess.check_output([cargo, 'install', '--list']).splitlines():
> +        out = subprocess.check_output([cargo, 'vendor', '--version']).splitlines()[0]

I don't think this will actually work properly. If `cargo-vendor` isn't installed, this will raise an exception and that's not handled anywhere.
Attachment #8891123 - Flags: review?(ted) → review-
Product: Core → Firefox Build System

Bug 1574056 obsoletes the need for this.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: