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

Comments

@go101
Copy link

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
Copy link
Contributor

bcmills commented May 20, 2019

Duplicate of #30515

@bcmills bcmills marked this as a duplicate of #30515 May 20, 2019
@bcmills bcmills closed this as completed May 20, 2019
@golang golang locked and limited conversation to collaborators May 19, 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

4 participants