From 7862db222e75ed69601f58bb65eed5291b692272 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 21 Jul 2025 15:25:38 -0600 Subject: chore: switch to mise.toml --- .tool-versions | 2 -- Makefile | 20 +------------------- mise.toml | 3 +++ 3 files changed, 4 insertions(+), 21 deletions(-) delete mode 100644 .tool-versions create mode 100644 mise.toml diff --git a/.tool-versions b/.tool-versions deleted file mode 100644 index 6cd6801..0000000 --- a/.tool-versions +++ /dev/null @@ -1,2 +0,0 @@ -golang 1.24.3 -python 3.13.4 diff --git a/Makefile b/Makefile index 0872ee3..26cce23 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ clean: @go clean -testcache setup: - @MISE_CONFIG_FILE=.tool-versions MISE_GLOBAL_CONFIG_FILE="" mise install + @mise install @go mod tidy @go mod vendor @go tool @@ -40,30 +40,12 @@ test: clean test-unit test-integration build-image: @docker build --network=host --no-cache --tag $(IMAGE_TAG) . -build-builder-image: - @docker build --target build --tag $(IMAGE_TAG) . - run: clean build @go tool godotenv -f .env.local,.env go tool minit -run-authzd: clean build - @go tool godotenv -f .env.local,.env ./bin/authzd - run-image: clean build-image @docker run --rm --network host --env-file .env.local -p 10000:10000 -p 9901:9901 -p 8080:8080 -it $(IMAGE_TAG) -run-envoy: - @go tool godotenv -f .env.local,.env ./bin/envoy.sh - -run-sparkled: clean build - @go tool godotenv -f .env.local,.env ./bin/sparkled - -sh-image: build-builder-image - @docker run --rm -it $(IMAGE_TAG) /bin/sh - -authzd-rpc-check: - @go tool grpcurl -plaintext -format text -d '' 127.0.0.1:10003 envoy.service.auth.v3.Authorization.Check - lint: @go tool yamlfmt --lint -exclude vendor . diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..7cdebe6 --- /dev/null +++ b/mise.toml @@ -0,0 +1,3 @@ +[tools] +go = "1.24.3" +python = "3.13.4" -- cgit v1.2.3