This repository was archived by the owner on Mar 9, 2022. It is now read-only.
Commit c04aabc
committed
Fix golangci-lint installation
The makefile was using "go get" as a replacement for "git clone", whith
would try to fetch some dependencies that are not in the version we're
installing,
go get -d github.com/golangci/golangci-lint/cmd/golangci-lint
Causing the build to fail;
package 4d63.com/gochecknoglobals/checknoglobals: unrecognized import path "4d63.com/gochecknoglobals/checknoglobals": reading https://4d63.com/gochecknoglobals/checknoglobals?go-get=1: 404 Not Found
Switching to use git clone to prevent golang attempting to download
dependencies, as the version we're currently installing uses vendoring, and
disabling go modules when building (otherwise go 1.13 would still fetch go modules)
This could be changed to using go modules, and use `go get golangci-lint@VERSION`,
but this needs to be done in a directory outside of GOPATH, so keeping that
for a follow-up.
Signed-off-by: Sebastiaan van Stijn <[email protected]>1 parent 9528e30 commit c04aabc
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments