_content/tour: fix offline mode go.mod lacking version#341
_content/tour: fix offline mode go.mod lacking version#341Bertie690 wants to merge 3 commits intogolang:masterfrom
go.mod lacking version#341Conversation
go.mod directivego.mod lacking version
eb8645b to
0eab249
Compare
go.mod lacking versiongo.mod lacking version
|
This PR (HEAD: 0eab249) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/website/+/732840. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/732840. |
|
This PR (HEAD: c20b2d3) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/website/+/732840. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/732840. |
|
Message from MW Taylor: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/732840. |
|
Message from Ryan Haasken: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/732840. |
|
Message from MW Taylor: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/732840. |
…rity rationale for latter is each line of code is 1:1 with lines in the generated go.mod
|
This PR (HEAD: 4c9dc38) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/website/+/732840. Important tips:
|
|
Message from MW Taylor: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/732840. |
Previously, an accidentally missing
godirective within the generatedgo.modfilewould effectively set the version to
1.16, which (being quite old) would raiseerrors upon attempting to compile generics-related example snippets.
The code has been updated to properly use the latest go version (1.25 as of current).
This may need to be updated in the future if any Go 1.26+-specific examples are added later, but this works for now.
Fixes golang/go#76932