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

cmd/go: "fmt" should support "-mod=vendor" #34838

go101 opened this issue Oct 11, 2019 · 1 comment

cmd/go: "fmt" should support "-mod=vendor" #34838

go101 opened this issue Oct 11, 2019 · 1 comment


Copy link

@go101 go101 commented Oct 11, 2019

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

$ go version
go version go1.13 linux/amd64

Does this issue reproduce with the latest release?


What did you do?

$ go fmt main.go
go: finding latest
$ go fmt -mod=vendor  main.go
flag provided but not defined: -mod
usage: go fmt [-n] [-x] [packages]
Run 'go help fmt' for details.

What did you expect to see?

Doesn't connect network when run "go fmt", at least doesn't when use the "-mod=vendor" option.

What did you see instead?

Either connects network or fails to run.


This comment has been minimized.

Copy link

@bcmills bcmills commented Oct 11, 2019

Duplicate of #27841

@bcmills bcmills marked this as a duplicate of #27841 Oct 11, 2019
@bcmills bcmills closed this Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.