Use go install to install golint (#1967)
This is the recommended approach since Go 1.17 I was getting an error when running `make install`: ``` GO111MODULE=off go get -u golang.org/x/lint/golint go: modules disabled by GO111MODULE=off; see 'go help modules' ```
This commit is contained in:
2
Makefile
2
Makefile
@@ -6,7 +6,7 @@ install:
|
|||||||
yarn install --pure-lockfile
|
yarn install --pure-lockfile
|
||||||
# Backend
|
# Backend
|
||||||
go install -v ./pkg/
|
go install -v ./pkg/
|
||||||
GO111MODULE=off go get -u golang.org/x/lint/golint
|
go install golang.org/x/lint/golint@latest
|
||||||
|
|
||||||
deps-go:
|
deps-go:
|
||||||
go install -v ./pkg/
|
go install -v ./pkg/
|
||||||
|
|||||||
Reference in New Issue
Block a user