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: go.mod should not includes main dependencies, even if they are tagged as indirect #32137

Closed
go101 opened this issue May 19, 2019 · 1 comment
Labels

Comments

@go101
Copy link

@go101 go101 commented May 19, 2019

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

$ go version
go version go1.12.5 linux/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

go get a main package in a modules based project.

What did you expect to see?

The got main package should not be added as a dependency in go.mod.

What did you see instead?

The got main package is added as an indirect dependency in go.mod.

@oiooj oiooj added the modules label May 19, 2019
@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented May 20, 2019

Duplicate of #30515

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