summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7b19403..612148b 100644
--- a/Makefile
+++ b/Makefile
@@ -10,11 +10,10 @@ bin/sparkled:
clean:
@rm -f ./bin/sparkled
@go clean -testcache
- @docker image rm -f $(IMAGE_TAG)
setup:
@mise install
- @go install tool
+ @go mod tidy
@command -v godotenv
@command -v playwright
@command -v yamlfmt
@@ -36,7 +35,7 @@ build-builder-image:
@docker build --target build --tag $(IMAGE_TAG) .
run: clean build
- @godotenv -f .env.local,.env ./bin/entrypoint.sh
+ @go tool godotenv -f .env.local,.env ./bin/entrypoint.sh
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)
@@ -45,10 +44,10 @@ sh-image: build-builder-image
@docker run --rm -it $(IMAGE_TAG) /bin/sh
lint:
- @yamlfmt --lint -exclude vendor .
+ @go tool yamlfmt --lint -exclude vendor .
tidy:
@go get -u ./...
@go mod tidy
@go mod vendor
- @yamlfmt -exclude vendor .
+ @go tool yamlfmt -exclude vendor .