Skip to content
New issue

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

x/vuln: govulncheck command not available after adding the package #55981

Closed
aleybovich opened this issue Oct 1, 2022 · 3 comments
Closed

x/vuln: govulncheck command not available after adding the package #55981

aleybovich opened this issue Oct 1, 2022 · 3 comments
Labels
FrozenDueToAge vulncheck or vulndb Issues for the x/vuln or x/vulndb repo WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@aleybovich
Copy link

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

$ go version

Does this issue reproduce at the latest version of golang.org/x/vuln?

Yes

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

Mac OSx 12.6 darwin-amd64

go env Output
$ go env

What did you do?

I try to install govulncheck: go install golang.org/x/vuln/cmd/govulncheck@latest
Th command completes with no errors

What did you expect to see?

I expect govulncheck command to become available in bash shell

What did you see instead?

govulncheck command doesn't exists in my bash shell

@aleybovich aleybovich added the vulncheck or vulndb Issues for the x/vuln or x/vulndb repo label Oct 1, 2022
@gopherbot gopherbot modified the milestones: Unreleased, vuln/unplanned Oct 1, 2022
@ZekeLu
Copy link
Contributor

ZekeLu commented Oct 1, 2022

https://go.dev/ref/mod#go-install

Executables (main packages) are installed to the directory named by the GOBIN environment variable, which defaults to $GOPATH/bin or $HOME/go/bin if the GOPATH environment variable is not set.

In order to make the command become available in bash shell, you should add that directory to the PATH environment variable.

@dmitshur dmitshur added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Oct 1, 2022
@aleybovich
Copy link
Author

aleybovich commented Oct 4, 2022

@ZekeLu Thank you! I am using asdf for Golang version control, so $GOPATH is not exposed to the shell and I had to add the following to my .zshrc after the line that initializes asdf:

# This line is already in the file if you have asdf installed
. /usr/local/opt/asdf/libexec/asdf.sh 

# This is the line adds $GOPATH/bin to $PATH
PATH=$(go env GOPATH)/bin:$PATH 

@seankhliao
Copy link
Member

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2022
@golang golang locked and limited conversation to collaborators Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge vulncheck or vulndb Issues for the x/vuln or x/vulndb repo WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants