Skip to content

Commit 236681e

Browse files
committed
Move gitea-vet to use go tool
1 parent 23a37b4 commit 236681e

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

.github/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ modifies/internal:
5151
- ".github/**"
5252
- ".gitea/**"
5353
- ".devcontainer/**"
54-
- "build.go"
5554
- "build/**"
5655
- "contrib/**"
5756

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ lint-go-windows:
386386
.PHONY: lint-go-gitea-vet
387387
lint-go-gitea-vet: ## lint go files with gitea-vet
388388
@echo "Running gitea-vet..."
389-
@GOOS= GOARCH= $(GO) build code.gitea.io/gitea-vet
390-
@$(GO) vet -vettool=gitea-vet ./...
389+
@$(GO) vet -vettool=$(shell go tool -n gitea-vet) ./...
391390

392391
.PHONY: lint-go-gopls
393392
lint-go-gopls: ## lint go files with gopls

build.go

Lines changed: 0 additions & 14 deletions
This file was deleted.

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,3 +307,5 @@ exclude github.com/gofrs/uuid v4.0.0+incompatible
307307
exclude github.com/goccy/go-json v0.4.11
308308

309309
exclude github.com/satori/go.uuid v1.2.0
310+
311+
tool code.gitea.io/gitea-vet

0 commit comments

Comments
 (0)