-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
x/website: doc/modules/pruning lacks content #49394
Comments
cc @bcmills |
Yep, I'm still writing the full doc. |
@bcmills Is there a draft version available anywhere? |
Not yet. (What I'm working on is basically a tutorial on In the meantime, though, I'm happy to advise on specific cases. (Generally if you're not sure it's easiest to just take the upgrade: |
Hi @bcmills, What I'm finding confusing in the output is that go1.17 won't upgrade the transitive dependencies, but then complains about the transitive dependency versions. The cli suggestion is to use I guess my questions is that if |
The complete suggestion is to use (That is:
It should not “fix the (It exists in order to facilitate the one-time 1.16-to-1.17 transition for projects that test against all supported Go versions, so it didn't seem worth adding a permanent
Without the However, you can indicate that you really don't care about the transitive requirement using an exclude gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b |
Thanks for the clarification @bcmills!
I think this is where I was confused. I thought that specifying |
I've come across the same issue and eventually found the content at https://go.dev/ref/mod#graph-pruning. Shouldn't the URL reported in the error message be https://go.dev/ref/mod#graph-pruning instead of https://golang.org/doc/modules/pruning (which redirects to https://go.dev/doc/modules/managing-dependencies)? |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I updated the version of a package we depend upon and ran
go mod tidy
.What did you expect to see?
I expected to see nothing, or an error pointing me to documentation explaining the error.
What did you see instead?
I don't understand the problem, so I followed the link at the bottom of the error:
https://golang.org/doc/modules/pruning
That link redirects to
https://golang.org/doc/modules/managing-dependencies
, which contains no information about these-compat
and-go
flags. It also doesn't contain the wordprune
anywhere.So my report is really a documentation bug. I'm confused by the decision that go is making, and the resource the CLI points me to does not help. Did the contents of that page change recently or something?
The text was updated successfully, but these errors were encountered: