Skip to content

Commit 6d4b181

Browse files
committed
Warn if jsonnet binary isn't go-jsonnet
1 parent 4440901 commit 6d4b181

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

deploy.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ def main():
217217
"No jsonnet binary was found on path! "
218218
"Install go-jsonnet via https://github.com/google/go-jsonnet/releases."
219219
)
220+
jsonnet_version = subprocess.check_output(["jsonnet", "--version"], text=True)
221+
if "go" not in jsonnet_version.casefold():
222+
print(
223+
"WARNING: The jsonnet binary on path doesn't seem to be go-jsonnet from https://github.com/google/go-jsonnet/releases! "
224+
"Only that jsonnet implementation is known to work."
225+
)
220226

221227
api = partial(
222228
grafana_request,

0 commit comments

Comments
 (0)