diff --git a/Makefile b/Makefile index e0fb63f3..a79c21f1 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,3 @@ golangci-lint: $(GOLANGCILINT) $(GOLANGCILINT): (cd /; GO111MODULE=on GOPROXY="direct" GOSUMDB=off go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.30.0) - -# If your internet was blocked by sth, you can use this proxy -#$(GOLANGCILINT): -# (cd /; GO111MODULE=on GOPROXY="https://goproxy.cn,direct" GOSUMDB=off go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.30.0) diff --git a/linkerd/install.go b/linkerd/install.go index 13bc640a..1980f8a3 100644 --- a/linkerd/install.go +++ b/linkerd/install.go @@ -271,6 +271,7 @@ func installBinary(location, platform string, res *http.Response) error { if err != nil { return err } + /* #nosec G307 */ defer func() { if err := out.Close(); err != nil { fmt.Println(err)