-
Notifications
You must be signed in to change notification settings - Fork 18k
doc/go1.13: highlight need to set GOPRIVATE when using private repos #33796
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
I'd prefer not to change this in the release notes. We can't adequately explain |
The first GOPRIVATE mention is a full three pages into the changelog, at least on my laptop at the default zoom level; I do think it should be at least be mentioned/linked as a quick warning near the very top of the changelog. I do think plenty of Go developers won't notice the importance of GOPRIVATE. In a way, the proxy now being a default is a breaking change, as they'd suddenly be leaking private information (such as import paths and version names of closed source modules) to the proxy. |
I agree with @jayconrod. The fact that we're now defaulting to the public checksum database is in the very first paragraph of text, and the need to configure something for private module dependencies follows directly from that. In particular, the go command documentation linked in the very first paragraph of the release notes mentions On the other hand, not everyone has private module dependencies. For example, users that have only “leaf” modules (that is, their own possibly-private module plus open-source dependencies) may not care about Also note that the paragraph describing It's true that the word |
I don't have an issue with adding a sentence in that paragraph of Introduction to Go 1.13, especially if people are running into this problem already. Could say something like "If you are using private modules, see the documentation for configuring your environment." If that sounds good, I'll make a PR. |
Yes, the main reason I asked @AndersonQ to file this bug is because he wasn't the first to miss the important piece of information after skimming the release notes for breaking changes. |
Change https://golang.org/cl/191746 mentions this issue: |
@gopherbot please create a cherrypick issue for 1.13 |
Misspelled cherrypick. Bleh. @gopherbot please consider this for backport to 1.13, it is a documentation change. |
Change https://golang.org/cl/191749 mentions this issue: |
Backport issue(s) opened: #33846 (for 1.13). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
…te modules to the introduction Updates #33796 Fixes #33846 Change-Id: I9f6837be96410e96d004523c48bef95ee1427484 Reviewed-on: https://go-review.googlesource.com/c/go/+/191746 Reviewed-by: Bryan C. Mills <[email protected]> (cherry picked from commit 989409f) Reviewed-on: https://go-review.googlesource.com/c/go/+/191749 Reviewed-by: Dmitri Shuralyov <[email protected]>
…uction Fixes golang#33796 Change-Id: I9f6837be96410e96d004523c48bef95ee1427484 Reviewed-on: https://go-review.googlesource.com/c/go/+/191746 Reviewed-by: Bryan C. Mills <[email protected]>
…uction Fixes golang#33796 Change-Id: I9f6837be96410e96d004523c48bef95ee1427484 Reviewed-on: https://go-review.googlesource.com/c/go/+/191746 Reviewed-by: Bryan C. Mills <[email protected]>
What did you do?
I update to go1.13beta1 and used go mod tidy to download private dependencies and it din't work as I had not set
GOPRIVATE
.I know it's documented under Tools > Modules > Environment variables. However besides myself other colleges had similar issues when using go 1.13 and I believe others would face similar problems when updating. Therefore I'd like to suggest to state in the Introduction to Go 1.13 section the need/introduction of
GOPRIVATE
.The text was updated successfully, but these errors were encountered: