Skip to content

Commit

Permalink
Warn if jsonnet binary isn't go-jsonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 13, 2024
1 parent 4440901 commit 6d4b181
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ def main():
"No jsonnet binary was found on path! "
"Install go-jsonnet via https://github.com/google/go-jsonnet/releases."
)
jsonnet_version = subprocess.check_output(["jsonnet", "--version"], text=True)
if "go" not in jsonnet_version.casefold():
print(
"WARNING: The jsonnet binary on path doesn't seem to be go-jsonnet from https://github.com/google/go-jsonnet/releases! "
"Only that jsonnet implementation is known to work."
)

api = partial(
grafana_request,
Expand Down

0 comments on commit 6d4b181

Please sign in to comment.