Skip to content

Commit 1be3fd4

Browse files
committed
add vet back to drone but remove GOOS and GOARCH when build vet
1 parent e3a0c49 commit 1be3fd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.drone.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ steps:
3737
pull: always
3838
image: golang:1.15
3939
commands:
40-
- make golangci-lint
40+
- make golangci-lint vet
4141
environment:
4242
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
4343
GOSUMDB: sum.golang.org

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ fmt:
232232
vet:
233233
@echo "Running go vet..."
234234
@$(GO) vet $(GO_PACKAGES)
235-
@$(GO) build -mod=vendor code.gitea.io/gitea-vet
235+
@GOOS= GOARCH= $(GO) build -mod=vendor code.gitea.io/gitea-vet
236236
@$(GO) vet -vettool=gitea-vet $(GO_PACKAGES)
237237

238238
.PHONY: $(TAGS_EVIDENCE)

0 commit comments

Comments
 (0)