From d62c1aeb3032e0384373395ea2bc785d8ee584a9 Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 22 Jul 2025 17:41:51 -0600 Subject: chore: update lint to validate spice schema --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3