Fix: use go run instead of search in go bin directory

This commit is contained in:
2025-11-10 01:43:28 +08:00
parent aaeba53f67
commit fc0320b3bb

View File

@@ -1,6 +1,6 @@
.PHONY: all swagger clean .PHONY: all swagger clean
SWAG ?= ~/go/bin/swag SWAG ?= go run github.com/swaggo/swag/cmd/swag@v1.16.6
SWAG_INIT_ARGS += -o docs -g cmds/server.go SWAG_INIT_ARGS += -o docs -g cmds/server.go
GO_ENV += CGO_ENABLED=0 GO_ENV += CGO_ENABLED=0