We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 798fe49 commit 08a2071Copy full SHA for 08a2071
hack/run-lint.sh
@@ -28,4 +28,23 @@ then
28
fi
29
30
# configured by .golangci.yml
31
-exec env GO111MODULE=on "$gopath/bin/golangci-lint" run
+GO111MODULE=on "$gopath/bin/golangci-lint" run
32
+
33
+install_impi() {
34
+ impi_dir="$(mktemp -d)"
35
+ trap 'rm -rf -- ${impi_dir}' EXIT
36
37
+ GOPATH="${impi_dir}" \
38
+ GO111MODULE=off \
39
+ GOBIN="${gopath}/bin" \
40
+ go get github.com/pavius/impi/cmd/impi
41
+}
42
43
+# install impi that ensures import grouping is done consistently
44
+if ! [[ -x "${gopath}/bin/impi" ]]
45
+then
46
+ echo >&2 'Installing impi'
47
+ install_impi
48
+fi
49
50
+"$gopath/bin/impi" --local sigs.k8s.io/krew --scheme stdThirdPartyLocal ./...
0 commit comments