diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-22 17:41:51 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-22 17:41:51 -0600 |
| commit | d62c1aeb3032e0384373395ea2bc785d8ee584a9 (patch) | |
| tree | e1dcfb9fbd073eadbe3249e994b5e68959dc2274 | |
| parent | 20ef0d92694465ac86b550df139e8366a0a2b4fa (diff) | |
chore: update lint to validate spice schema
| -rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |
