]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
runner: respect CARGO env var when building eve validator 2635/head 2636/head
authorJason Ish <jason.ish@oisf.net>
Wed, 3 Sep 2025 15:18:47 +0000 (09:18 -0600)
committerJason Ish <jason.ish@oisf.net>
Wed, 3 Sep 2025 15:18:47 +0000 (09:18 -0600)
For cases where "cargo" does not exist, but "cargo-1.82" does.

Ticket: #7877

run.py

diff --git a/run.py b/run.py
index 61ee2f9862889f0d1799995316b8d7fa96329aae..fe79729e9b7bb8dd03c6054e607aafdf6ef67f50 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -1158,8 +1158,9 @@ def build_eve_validator():
     env = os.environ.copy()
     if "CARGO_BUILD_TARGET" in env:
         del env["CARGO_BUILD_TARGET"]
+    cargo = env.get("CARGO", "cargo")
     subprocess.check_call(
-            "cargo build --release", cwd=os.path.join(TOPDIR, "eve-validator"),
+            "{} build --release".format(cargo), cwd=os.path.join(TOPDIR, "eve-validator"),
             shell=True, env=env)
 
 def main():