We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$HOME/go/bin
go version go1.21.5 darwin/arm64
go env
GO111MODULE='' GOARCH='arm64' GOBIN='' GOCACHE='/Users/fredsa/Library/Caches/go-build' GOENV='/Users/fredsa/Library/Application Support/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='arm64' GOHOSTOS='darwin' GOINSECURE='' GOMODCACHE='/Users/fredsa/go/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='darwin' GOPATH='/Users/fredsa/go' GOPRIVATE='' GOPROXY='https://proxy.golang.org,direct' GOROOT='/usr/local/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64' GOVCS='' GOVERSION='go1.21.5' GCCGO='gccgo' AR='ar' CC='clang' CXX='clang++' CGO_ENABLED='1' GOMOD='/dev/null' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/zj/9v0l3b_x25z6yjqfjs_9k6j0002srk/T/go-build4093910643=/tmp/go-build -gno-record-gcc-switches -fno-common'
REPRO STEPS:
go1.21.5.darwin-arm64.pkg
go
/usr/local/go/bin/go
go install golang.org/x/vuln/cmd/govulncheck@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
govulcheck
-bash: govulcheck: command not found
staticcheck
-bash: staticcheck: command not found
REQUEST: Please do at least one of the following:
$PATH
go install …
ACTUAL:
go env GOPATH
EXPECTED: 1.$HOME/go/bin is added to $PATH during installation -or- https://go.dev/doc/install includes instructions to do this manually
The text was updated successfully, but these errors were encountered:
Related issues: #44930, #10147, #30770, (and perhaps #45546).
Sorry, something went wrong.
Duplicate of #39531
No branches or pull requests
Go version
go version go1.21.5 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
REPRO STEPS:
go1.21.5.darwin-arm64.pkg
go
CLI which was installed in/usr/local/go/bin/go
go install golang.org/x/vuln/cmd/govulncheck@latest
, per https://go.dev/blog/govulncheckgo install honnef.co/go/tools/cmd/staticcheck@latest
, per https://staticcheck.dev/docs/getting-started/govulcheck
: ERROR-bash: govulcheck: command not found
staticcheck
: ERROR-bash: staticcheck: command not found
REQUEST:
Please do at least one of the following:
$HOME/go/bin
to your$PATH
$HOME/go/bin
to$PATH
go
command that warns the user if$HOME/go/bin
is not on the pathgo install …
software that adds an executable to$HOME/go/bin
, to update their path.$HOME/go/bin
path issueWhat did you see happen?
ACTUAL:
go env GOPATH
returns the path to my$HOME/go/bin
$HOME/go/bin
has not been added to my$PATH
govulcheck
,staticcheck
, etc. (which exist in$HOME/go/bin
) are not found on the default path$HOME/go/bin
to$PATH
$PATH
What did you expect to see?
EXPECTED:
1.
$HOME/go/bin
is added to$PATH
during installation -or- https://go.dev/doc/install includes instructions to do this manuallyThe text was updated successfully, but these errors were encountered: