golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.1k stars 17.68k forks source link

x/tools: installation blocked by virus scanner #40164

Closed duckwheel closed 4 years ago

duckwheel commented 4 years ago

What version of Go are you using (go version)?

go version
go version go1.14 darwin/amd64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
compiler@nexus6 ~ % go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/compiler/Library/Caches/go-build"
GOENV="/Users/compiler/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/compiler/go"
GOPRIVATE=""
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=""
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/z0/_qxnvkt90kn73_d2qt42jnlc0000gn/T/go-build033977144=/tmp/go-build -gno-record-gcc-switches -fno-common"
compiler@nexus6 ~ %

What did you do?

go get -u -v golang.org/x/tools/...

What did you expect to see?

clean install of go support tools

What did you see instead?

et "golang.org/x/tools/internal/lsp/regtest": verifying non-authoritative meta tag get "golang.org/x/tools/internal/stack": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at //golang.org/x/tools/internal/stack?go-get=1 get "golang.org/x/tools/internal/stack": verifying non-authoritative meta tag get "golang.org/x/tools/internal/stack/gostacks": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at //golang.org/x/tools/internal/stack/gostacks?go-get=1 get "golang.org/x/tools/internal/stack/gostacks": verifying non-authoritative meta tag get "golang.org/x/tools/internal/stack/stacktest": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at //golang.org/x/tools/internal/stack/stacktest?go-get=1 get "golang.org/x/tools/internal/stack/stacktest": verifying non-authoritative meta tag open /var/folders/z0/_qxnvkt90kn73_d2qt42jnlc0000gn/T/go-build614940412/b126/exe/a.out: permission denied I'm currently running a deep virus scan on my Mac but this is the first time i have come across this updating tools not sure if its a false positive?

Screenshot 2020-07-11 at 14 59 14

agnivade commented 4 years ago

Yes, this is a false positive. Please see: https://golang.org/doc/faq#virus.

I will go ahead and close this because I don't think there is anything we can do here. Please let me know if I am mistaken.