summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-22 17:41:51 -0600
committermo khan <mo@mokhan.ca>2025-07-22 17:41:51 -0600
commitd62c1aeb3032e0384373395ea2bc785d8ee584a9 (patch)
treee1dcfb9fbd073eadbe3249e994b5e68959dc2274 /Makefile
parent20ef0d92694465ac86b550df139e8366a0a2b4fa (diff)
chore: update lint to validate spice schema
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9dc8842..a0b4653 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/\//_/g')
IMAGE_TAG := $(PROJECT_NAME):$(GIT_BRANCH)
AUTHZD_BIN := bin/authzd
SPARKLED_BIN := bin/sparkled
+ZED_CMD = go tool godotenv -f .env.local,.env go tool zed --insecure
.PHONY: clean setup build test run
@@ -25,7 +26,7 @@ setup:
@if command -v brew >/dev/null 2>&1; then \
brew bundle; \
fi
- @@mise exec python -- pip install dumb-init
+ @mise exec python -- pip install dumb-init
build: $(AUTHZD_BIN) $(SPARKLED_BIN)
@@ -51,6 +52,7 @@ run-image: clean build-image
lint:
@go tool yamlfmt --lint -exclude vendor .
+ @$(ZED_CMD) validate etc/authzd/spice.schema
tidy:
@go get -u ./...
@@ -58,5 +60,8 @@ tidy:
@go mod vendor
@go tool yamlfmt -exclude vendor .
-load-schema:
- @go tool godotenv -f .env.local,.env go tool zed --insecure schema write etc/authzd/spice.schema
+db-schema-load:
+ @$(ZED_CMD) schema write etc/authzd/spice.schema
+
+db-schema:
+ @$(ZED_CMD) schema read