sync cargo-deny version in python/servo/platform/base.py (#35730)

Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
Yerkebulan Tulibergenov 2025-02-28 21:05:51 -08:00 committed by GitHub
parent e91d44d023
commit 494ebaa751
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,11 +82,11 @@ class Base:
def cargo_deny_installed():
if force or not shutil.which("cargo-deny"):
return False
# Tidy needs at least version 0.16.3 installed.
# Tidy needs at least version 0.18.1 installed.
result = subprocess.run(["cargo-deny", "--version"],
encoding='utf-8', capture_output=True)
(major, minor, micro) = result.stdout.strip().split(" ")[1].split(".", 2)
return (int(major), int(minor), int(micro)) >= (0, 16, 3)
return (int(major), int(minor), int(micro)) >= (0, 18, 1)
if cargo_deny_installed():
return False