]> source.dussan.org Git - gitea.git/commitdiff
It seems vet on windows is unnecessary (#14302)
authorLunny Xiao <xiaolunwen@gmail.com>
Tue, 19 Jan 2021 01:56:10 +0000 (09:56 +0800)
committerGitHub <noreply@github.com>
Tue, 19 Jan 2021 01:56:10 +0000 (02:56 +0100)
* It seems vet on windows is unnecessary

* add vet back to drone but remove GOOS and GOARCH when build vet

Makefile

index dc8faf817d8c5ab20bd1f691fdc9670991a09a97..4e03581785ff5ed052a54a2c79a8cfda1ebba77f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -232,7 +232,7 @@ fmt:
 vet:
        @echo "Running go vet..."
        @$(GO) vet $(GO_PACKAGES)
-       @$(GO) build -mod=vendor code.gitea.io/gitea-vet
+       @GOOS= GOARCH= $(GO) build -mod=vendor code.gitea.io/gitea-vet
        @$(GO) vet -vettool=gitea-vet $(GO_PACKAGES)
 
 .PHONY: $(TAGS_EVIDENCE)