-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: "mod tidy" remove necessary "require" statement #36195
Comments
I checked out the repo. It looks like any command will remove the requirement on You could try |
Duplicate of #33284 |
This comment has been minimized.
This comment has been minimized.
This is not true... The mod file of modEnabled requires github.com/hexonet/go-sdk@v1.2.1. It is ignored by Go mod, so both "go mod tidy" and "go mod graph" only sees @bcmills Why do you think this issues is a duplicate of a logging issue? |
@linzhp, the fact that the version is changed is due to the existing requirement on |
So this is a logging problem, because we are not logging the most important piece of information that would help you debug the situation: specifically, the fact that |
Sorry, I don't understand. I have both go.mod files of |
Modules are versioned. The version that |
But my point is |
@linzhp,
It does not matter what the |
Oh, I see. Thanks for the explanation. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
It can be reproduced in
go version devel +0377f06168 Tue Dec 17 20:57:06 2019 +0000 darwin/amd64
The issue cannot be reproduced in Go 1.12.13.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
"go mod tidy" finishes successfully.
What did you see instead?
The line "github.com/hexonet/go-sdk v1.2.1 // indirect" in
go_examples/hyphen/go.mod
is removed. "go mod" tried to usegit.luolix.top/hexonet/go-sdk@v2.2.3+incompatible
instead, resulting an error:The text was updated successfully, but these errors were encountered: