aboutsummaryrefslogtreecommitdiff
path: root/releng
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-06-13 15:24:21 -0700
committerJade Lovelace <lix@jade.fyi>2024-06-13 15:24:21 -0700
commit7be0d237e0e88e65be9015c65e4f0fc67d2d9aad (patch)
tree98ec1d50237283663e84355409800422edb71e29 /releng
parente715e5fd31e0f79eac17c02163bd2035ef7c9166 (diff)
releng: fix git checking
Change-Id: I82ddd918311b48e596adb807b81221973113fe7a
Diffstat (limited to 'releng')
-rw-r--r--releng/gitutils.xsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/releng/gitutils.xsh b/releng/gitutils.xsh
index 3352a6b21..e18b4da5f 100644
--- a/releng/gitutils.xsh
+++ b/releng/gitutils.xsh
@@ -1,6 +1,8 @@
import subprocess
import json
+from .version import VERSION
+
def version_compare(v1: str, v2: str):
return json.loads($(nix-instantiate --eval --json --argstr v1 @(v1) --argstr v2 @(v2) --expr '{v1, v2}: builtins.compareVersions v1 v2'))