-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: 'looping trying to add package' when running 'mod tidy' with a package not found in the containing module #30394
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
Comments
CC @jayconrod |
This error is happening because the package So this is kind of working as intended (deleting a package is a breaking change), but we should report a more helpful error message. You can work around this by removing imports of |
Thanks! I actually did that and removed the import, so from my end the problem is resolved. |
#27063 probably shares the underlying cause. |
Change https://golang.org/cl/169720 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, it does (at the time of writing 1.11.5 is the latest).
Note: reproduced the issue with go1.12rc1 as well
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Go command should have exited with tidied modules.
What did you see instead?
The text was updated successfully, but these errors were encountered: