From e3a0c49588de486aada941ed27d110df3eea75bf Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 11 Jan 2021 22:15:59 +0800 Subject: [PATCH 1/2] It seems vet on windows is unnecessary --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 74dbf107bd5c5..f3de6b32cb980 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,7 +37,7 @@ steps: pull: always image: golang:1.15 commands: - - make golangci-lint vet + - make golangci-lint environment: GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOSUMDB: sum.golang.org From 1be3fd4f2de2f27f74d3c6093da18a7fcc4e3d5d Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 19 Jan 2021 00:16:19 +0800 Subject: [PATCH 2/2] add vet back to drone but remove GOOS and GOARCH when build vet --- .drone.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index f3de6b32cb980..74dbf107bd5c5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,7 +37,7 @@ steps: pull: always image: golang:1.15 commands: - - make golangci-lint + - make golangci-lint vet environment: GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOSUMDB: sum.golang.org diff --git a/Makefile b/Makefile index dc8faf817d8c5..4e03581785ff5 100644 --- 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)