-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
website: Update "How to Write Go Code" with go modules #28215
Comments
I wouldn't mind giving this one a shot? |
CC @robpike |
@andybons @bcmills This might be somewhat stuck with some type of CLA-related issue? See for example #28218 (comment). Is there someone you could suggest who could help unstick the CLA issue? Or is there some other approach you might recommend like deleting the PR and trying again in the hopes of avoiding whatever tripped up the CLA bot? |
I’ve responded on the Pull Request. |
Change https://golang.org/cl/142297 mentions this issue: |
@elliotforbes @mdwhatcott @deanveloper Thanks for helping make this a reality! Several months ago, I think the plan or hope was that GO111MODULE would default to It now seems for multiple reasons GO111MODULE will still default to Reading through the comments in this issue and the PR and CL, I initially thought your intent was to update "How to Write Go Code" to be a modules-specific document, and to drop the details of older GOPATH behavior... but now after reading through more of the CL, I am not sure if that was the intent? My personal take is:
Together, that might seem to imply there could be two versions of this document – a new version that is modules-specific, and one that is the current GOPATH-specific version. However, I am not sure of the best approach, so more than anything I wanted to ask what you might be currently thinking... Finally, note that I'm basically just a random member of the community, so please do not give too much weight to anything I say here or in the CL (and instead just view my comments as coming from a peer in the community). |
Ok, I can update the code to remove the GOPATH explanations and focus purely on using modules. This could then be tagged to go live with the 1.12 release in February? Does this sound like a plan? |
Generally, documentation fixes are permitted during the freeze so it’s feasible this will get in by the time 1.12 stable is released. No need to worry about that. Let’s wait for @bcmills to respond. Many people are out this week for the holidays so we’ll need to be a bit patient. Thanks. |
After discussion with the team, we don't believe we should be removing references to |
Cool, should I leave as-is then? Or are there more actions for me to take at this point? |
The current doc changes replace |
I've taken an initial stab at explaining how both work in the same document, I'll be going over it more once I have a bit of free time this weekend, but it's up if you want to critique the approach used. |
@andybons Do you know if there is still time for this to land in time for 1.12? Also, there is some nuance here. This is not a complete list of open questions, but for example:
There is a longer list of questions, and I'm not suggesting all open questions be answered immediately. Rather, I am listing those example questions primarily to suggest there is a healthy chance that ultimately more than one person on the core Go team might want to weigh in on this effort. In general, there is a natural cadence to open source development that often involves waiting (e.g., waiting for someone to have something initially ready for feedback, waiting for it to get to the top of a reviewer's stack, waiting to find time to incorporate latest feedback, etc.), and patience is certainly a virtue in all of this... ...but I also wonder:
Or if not exactly something like that, then perhaps some other small amount of orchestration that could help increase the odds of this landing in time for 1.12? CC @bcmills @heschik |
There is realistically no way this will land for 1.12, but we should make sure it is updated for 1.13. I think that discussion of I would rather see |
This document should target beginners. |
FYI this is underway at https://go-review.googlesource.com/c/website/+/199417. |
Change https://golang.org/cl/199417 mentions this issue: |
Change https://golang.org/cl/213937 mentions this issue: |
CL 199417 added a new doc/gopath_code.html file. This change adds it to the list of files that are embedded in package static, and regenerates the package. A change described in https://golang.org/issue/29206#issuecomment-536099768 will make it no longer neccessary to do this step in the future. Updates golang/go#28215 Updates golang/go#29206 Change-Id: Ia1bd125488e04b34f9b8e36de4397de32d77bcef Reviewed-on: https://go-review.googlesource.com/c/website/+/213937 Run-TryBot: Dmitri Shuralyov <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
Fixes golang/go#28215 Change-Id: I4be63c2408bb117c6ee2d3a02327f6d277d35828 Reviewed-on: https://go-review.googlesource.com/c/website/+/199417 Run-TryBot: Jean de Klerk <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
Now that go modules are a thing, is it time to update "How to Write Go Code" with information about modules?
The text was updated successfully, but these errors were encountered: