Skip to content

Commit 918ac2b

Browse files
committed
use mod=vendor during build
Signed-off-by: Jacob Lisi <[email protected]>
1 parent 491ae93 commit 918ac2b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.golangci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
run:
2+
# timeout for analysis, e.g. 30s, 5m, default is 1m
3+
deadline: 5m
4+
5+
modules-download-mode: vendor

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ cmd/cortextool/cortextool: $(APP_GO_FILES) cmd/cortextool/main.go
1717
CGO_ENABLED=0 go build $(GO_FLAGS) -o $@ ./$(@D)
1818

1919
lint:
20-
GOGC=20 golangci-lint --deadline=20m run
20+
golangci-lint run
2121

2222
cross:
2323
CGO_ENABLED=0 gox -output="dist/{{.Dir}}-{{.OS}}-{{.Arch}}" -ldflags=${LDFLAGS} -arch="amd64" -os="linux windows darwin" ./cmd/cortextool
2424

2525
test:
26-
go test -p=8 ./...
26+
go test -mod=vendor -p=8 ./...
2727

2828
clean:
2929
rm -rf cmd/cortextool/cortextool

0 commit comments

Comments
 (0)