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
vendor: no docs on how to update a module in std #31806
Comments
This is the thread that discussed this: https://groups.google.com/d/msg/golang-dev/xcVJDj5GJ84/6XF1X8yhBwAJ . (Austin asked for docs there, but I don't know if any were written.) CC @bcmills |
I also tried |
I'm still not able to make it work. |
Maybe this is "expected" for some reason, or maybe there is something specific to how GOROOT is set, or some other stdlib-specific step, but if this was a normal module (rather than stdlib), then this would seem to be a bug. In this case, it looks like running
...but the corresponding .go source files in
In this case, |
Okay, @jayconrod points out that I'm confused. I thought the But docs would still be nice. |
Two other quick comments. It seems The module cache in GOPATH/pkg/mod does seem to end up with
I have never tried to vendor edit: ok, seems like mystery is now solved. |
So it seems vendoring is working as intended; I was initially confused because I misinterpreted bisect results during a meeting. Documentation definitely needed. I thought there was a README at some point, but I'm unable to find it in the history. |
We'll add the docs. I also have a pending CL that makes essentially all go commands after 'go get whatever@latest' die with a message saying 'now you run go mod vendor'. |
Change https://golang.org/cl/174999 mentions this issue: |
I've been flailing around all morning fighting the new system of updating modules in std.
I want to update x/net in std because the golang.org/x/net/http/httpproxy we have in std is old and doesn't support
ALL_PROXY
.Note that all_proxy is present in golang.org/x/net:
But it's not present in std:
So, let's update it...
And
go mod vendor
perhaps?Nope. Still not present.
What changed?
... other stuff changed, but not
golang.org/x/net/...
I tried to get get a specific version rather than "latest"
Still no good.
A README.txt would really help.
Also, what is vendor/modules.txt? What role does it play and is it hand maintained or tool maintained and where is it documented? Does it support comments? Could it have some comments saying what it is?
Please help. (and document)
The text was updated successfully, but these errors were encountered: