mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
5338478546
We were using "go get", 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" (parse https://4d63.com/gochecknoglobals/checknoglobals?go-get=1: no go-import meta tags ()) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
10 lines
248 B
Bash
Executable file
10 lines
248 B
Bash
Executable file
#!/bin/sh
|
|
|
|
: "${GOLANGCI_LINT_COMMIT=v1.23.8}"
|
|
|
|
install_golangci_lint() {
|
|
set -e
|
|
export GO111MODULE=on
|
|
GOBIN="${PREFIX}" go get "github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_COMMIT}"
|
|
"${PREFIX}"/golangci-lint --version
|
|
}
|