mach bootstrap: Lock cargo-deny to 0.16.1 (#34258)

As mentioned in https://github.com/servo/servo/pull/34257
we should also lock the cargo-deny version in mach bootstrap.

Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
This commit is contained in:
Jonathan Schwender 2024-11-15 13:57:40 +01:00 committed by GitHub
parent 56fed22a5b
commit c64d5e9d30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,7 +83,8 @@ class Base:
return False
print(" * Installing cargo-deny...")
if subprocess.call(["cargo", "install", "cargo-deny", "--locked"]) != 0:
# cargo-deny 0.16.2 requires Rust 1.81.
if subprocess.call(["cargo", "install", "cargo-deny", "--locked", "--version", "0.16.1"]) != 0:
raise EnvironmentError("Installation of cargo-deny failed.")
return True