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

Closed
go101 opened this issue Oct 11, 2019 · 1 comment
Closed

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

go101 opened this issue Oct 11, 2019 · 1 comment

Comments

@go101
Copy link

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?

Yes

What did you do?

$ go fmt main.go
go: finding github.com/golang/glog latest
^C
$ 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.

@bcmills
Copy link
Contributor

bcmills commented Oct 11, 2019

Duplicate of #27841

@bcmills bcmills marked this as a duplicate of #27841 Oct 11, 2019
@bcmills bcmills closed this as completed Oct 11, 2019
@golang golang locked and limited conversation to collaborators Oct 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants