mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
Do not set GO111MODULE=off
during go install
, since this doesnt work in Go1.14 and Go1.15
This commit is contained in:
parent
aca669c89c
commit
3f88e27d0f
2 changed files with 3 additions and 5 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -13,8 +13,6 @@ jobs:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
id: go
|
id: go
|
||||||
- name: Dependencies
|
- name: Dependencies
|
||||||
env:
|
|
||||||
GO111MODULE: off
|
|
||||||
run: |
|
run: |
|
||||||
go install golang.org/x/lint/golint
|
go install golang.org/x/lint/golint
|
||||||
go install github.com/kisielk/errcheck
|
go install github.com/kisielk/errcheck
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -99,7 +99,7 @@ lint: install-golint
|
||||||
golint app/...
|
golint app/...
|
||||||
|
|
||||||
install-golint:
|
install-golint:
|
||||||
which golint || GO111MODULE=off go install golang.org/x/lint/golint
|
which golint || go install golang.org/x/lint/golint
|
||||||
|
|
||||||
errcheck: install-errcheck
|
errcheck: install-errcheck
|
||||||
errcheck -exclude=errcheck_excludes.txt ./lib/...
|
errcheck -exclude=errcheck_excludes.txt ./lib/...
|
||||||
|
@ -113,7 +113,7 @@ errcheck: install-errcheck
|
||||||
errcheck -exclude=errcheck_excludes.txt ./app/vmrestore/...
|
errcheck -exclude=errcheck_excludes.txt ./app/vmrestore/...
|
||||||
|
|
||||||
install-errcheck:
|
install-errcheck:
|
||||||
which errcheck || GO111MODULE=off go install github.com/kisielk/errcheck
|
which errcheck || go install github.com/kisielk/errcheck
|
||||||
|
|
||||||
check-all: fmt vet lint errcheck golangci-lint
|
check-all: fmt vet lint errcheck golangci-lint
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ quicktemplate-gen: install-qtc
|
||||||
qtc
|
qtc
|
||||||
|
|
||||||
install-qtc:
|
install-qtc:
|
||||||
which qtc || GO111MODULE=off go install github.com/valyala/quicktemplate/qtc
|
which qtc || go install github.com/valyala/quicktemplate/qtc
|
||||||
|
|
||||||
|
|
||||||
golangci-lint: install-golangci-lint
|
golangci-lint: install-golangci-lint
|
||||||
|
|
Loading…
Reference in a new issue