Skip to content

x/vuln: outdated govulncheck documentation #61152

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

Closed
dB2510 opened this issue Jul 3, 2023 · 3 comments
Closed

x/vuln: outdated govulncheck documentation #61152

dB2510 opened this issue Jul 3, 2023 · 3 comments
Assignees
Labels
Documentation Issues describing a change to documentation. FrozenDueToAge vulncheck or vulndb Issues for the x/vuln or x/vulndb repo
Milestone

Comments

@dB2510
Copy link

dB2510 commented Jul 3, 2023

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

$ go version
go version go1.20.5 darwin/arm64

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)?

go env Output
$ go env

What did you do?

Executed the following commands based on the latest documentation: https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck

go install golang.org/x/vuln/cmd/govulncheck@v0.2.0
govulncheck -v -test ./...

What did you expect to see?

govulncheck is an experimental tool. Share feedback at https://go.dev/s/govulncheck-feedback.

Using go1.20.5 and govulncheck@v0.2.0 with
vulnerability data from https://vuln.go.dev (last modified 2023-06-26 16:56:57 +0000 UTC).

Scanning your code and 638 packages across 140 dependent modules for known vulnerabilities...
No vulnerabilities found.

What did you see instead?

flag provided but not defined: -v
Govulncheck reports known vulnerabilities in dependencies.

Usage:

	govulncheck [flags] [patterns]
	govulncheck -mode=binary [flags] [binary]

  -C dir
    	change to dir before running govulncheck
  -db url
    	vulnerability database url (default "https://vuln.go.dev/")
  -json
    	output JSON
  -mode string
    	supports source or binary (default "source")
  -scan-level string
    	set the scanning level desired, one of module, package or symbol (default "symbol")
  -show list
    	enable display of additional information specified by list
  -tags list
    	comma-separated list of build tags
  -test
    	analyze test files (only valid for source mode)

For details, see https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck.
flag provided but not defined: -v
@dB2510 dB2510 added the vulncheck or vulndb Issues for the x/vuln or x/vulndb repo label Jul 3, 2023
@gopherbot gopherbot modified the milestones: Unreleased, vuln/unplanned Jul 3, 2023
@gopherbot gopherbot added the Documentation Issues describing a change to documentation. label Jul 3, 2023
@dB2510
Copy link
Author

dB2510 commented Jul 3, 2023

Hi @julieqiu @ianthehat 👋

Looks like govulncheck documentation still mentions about -v flag while it was replaced with -show in this issue.

@julieqiu
Copy link
Member

julieqiu commented Jul 3, 2023

Thank you @dB2510 for letting us know!

@julieqiu
Copy link
Member

This is fixed at master.

@golang golang locked and limited conversation to collaborators Jul 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Issues describing a change to documentation. FrozenDueToAge vulncheck or vulndb Issues for the x/vuln or x/vulndb repo
Projects
None yet
Development

No branches or pull requests

4 participants