Open bwplotka opened 4 years ago
% bingo Version
v0.2.2
% go version
go version go1.14.6 darwin/amd64
% cd $(mktemp -d)
% go mod init example.com/example
go: creating new go.mod: module example.com/example
% bingo get github.com/golangci/golangci-lint/cmd/golangci-lint
Bingo not used before here, creating directory for pinned modules for you at .bingo
go: found github.com/golangci/golangci-lint/cmd/golangci-lint in github.com/golangci/golangci-lint v1.29.0
go build runtime/cgo: copying /Users/example/Library/Caches/go-build/6c/6ca5db57043262ad56fd407655908d7c87beebaeab956fd7f09b67eec162187c-d: open /usr/local/go/pkg/darwin_amd64/runtime/cgo.a: permission denied
Error: get command failed: get: 0: getting : go build runtime/cgo: copying /Users/example/Library/Caches/go-build/6c/6ca5db57043262ad56fd407655908d7c87beebaeab956fd7f09b67eec162187c-d: open /usr/local/go/pkg/darwin_amd64/runtime/cgo.a: permission denied
%
% go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/Users/example/.local/bin"
GOCACHE="/Users/example/Library/Caches/go-build"
GOENV="/Users/example/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY="*.ibm.com"
GONOSUMDB="*.ibm.com"
GOOS="darwin"
GOPATH="/Users/example/.local"
GOPRIVATE="*.ibm.com"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/var/folders/gh/7csxj1cn72z2fm8c9rxjwjkm0000gn/T/tmp.iteez1Iv/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/gh/7csxj1cn72z2fm8c9rxjwjkm0000gn/T/go-build219826287=/tmp/go-build -gno-record-gcc-switches -fno-common"
As reported here: https://gophers.slack.com/archives/C01535DF3L2/p1595522898001500