Skip to content

Commit

Permalink
Add target to refresh jb deps
Browse files Browse the repository at this point in the history
Signed-off-by: Lukáš Vlček <lukas.vlcek@aiven.io>
  • Loading branch information
lukas-vlcek committed Dec 6, 2022
1 parent 4f6dda4 commit c55fdf3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DISTRIBUTION_FOLDER = distribution
JSONNET_FMT := jsonnetfmt -n 2 --max-blank-lines 2 --string-style s --comment-style s

.PHONY: clean dashboards
.PHONY: clean dashboards refresh-jb

all: fmt dashboards prometheus_alerts.yaml prometheus_recording_rules.yaml lint

Expand Down Expand Up @@ -31,4 +31,12 @@ lint: prometheus_alerts.yaml prometheus_recording_rules.yaml
promtool check rules ${DISTRIBUTION_FOLDER}/prometheus_alerts.yaml

clean:
rm -rf ${DISTRIBUTION_FOLDER}
rm -rf ${DISTRIBUTION_FOLDER}

# Refresh all jb dependencies.
# Keep all jsonnet dependencies up to date otherwise it can get out-of-sync with CI (CI always uses fresh deps).
# A good practice is to run refresh before starting work on a new PR.
refresh-jb:
rm -rf vendor
rm jsonnetfile.lock.json
jb install

0 comments on commit c55fdf3

Please sign in to comment.