Move gitea-vet to use go tool (#35878)

Add it as a [tool
dependency](https://go.dev/doc/modules/managing-dependencies#tools),
eliminating the need for `build.go`.
This commit is contained in:
silverwind authored and GitHub committed 2025-11-06 21:09:31 +01:00
1 parent eef9406c6b
commit b2feeddf42
4 files changed
+4 -18

No files matched your search

+1 -2
View File
@@ -386,8 +386,7 @@ lint-go-windows:
.PHONY: lint-go-gitea-vet
lint-go-gitea-vet: ## lint go files with gitea-vet
@echo "Running gitea-vet..."
@GOOS= GOARCH= $(GO) build code.gitea.io/gitea-vet
@$(GO) vet -vettool=gitea-vet ./...
@$(GO) vet -vettool="$(shell GOOS= GOARCH= go tool -n gitea-vet)" ./...
.PHONY: lint-go-gopls
lint-go-gopls: ## lint go files with gopls