Skip to content

Commit ed84365

Browse files
committed
Fail loudly if jsonnet isn't on path
1 parent b4d801e commit ed84365

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

deploy.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ def main():
209209
if not grafana_token:
210210
raise ValueError("The environment variable GRAFANA_TOKEN needs to be set in order to deploying dashboards to a Grafana deployment.")
211211

212+
# ensure jsonnet (go-jsonnet)
213+
if not shutil.which("jsonnet"):
214+
raise ValueError(
215+
"No jsonnet binary was found on path! "
216+
"Install go-jsonnet via https://github.com/google/go-jsonnet/releases."
217+
)
218+
212219
api = partial(
213220
grafana_request,
214221
args.grafana_url,

0 commit comments

Comments
 (0)