Skip to content

Commit 4440901

Browse files
committed
Fail loudly if jsonnet isn't on path
1 parent f362d26 commit 4440901

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
@@ -211,6 +211,13 @@ def main():
211211
"The environment variable GRAFANA_TOKEN needs to be set in order to deploying dashboards to a Grafana deployment."
212212
)
213213

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

0 commit comments

Comments
 (0)