-
Notifications
You must be signed in to change notification settings - Fork 18k
x/playground: 1.16 not available #44389
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
Thanks for reporting. CC @golang/release. |
@dmitshur can you help merge it? thanks |
Change https://golang.org/cl/294609 mentions this issue: |
Should documented examples maintain backward compatibility wherever possible?I created this issue after spending a lot of time googling for Go 1.15 documentation to find a While forward compatibility is the primary reason for aliases to exist, should the privilege of backward compatibility not extend to the documentation of previously existing examples within a major point release? I believe @dreamerjackson's approach (reverting the docs) is correct. Reverting all instances of |
pkg.go.dev has docs for past versions of the stdlib: https://pkg.go.dev/path/filepath?tab=versions |
By the definitions used by the Go project, this is not a breaking change, because the code that worked with 1.15 continues to work fine with Go 1.16. The problem here is that code that works with Go 1.16 does not work with Go 1.15. And, of course, that is always true for every new release: code that works with the new release does not work with the old release. I don't agree that we should change the Go 1.16 docs to work with Go 1.15. If you are using Go 1.15, use the Go 1.15 docs. But for documentation and code that is maintained outside of the Go release process, then I agree that that documentation should continue to work with Go 1.15 as long as 1.15 is supported. |
The Playground Dockerfile needs an update to work with Go 1.16, due to assumptions it makes about GOPATH behavior for old tour snippets. This prevented the playground from updating with this release, and is why the newer demo code doesn't work. I'll take a look. |
Change https://golang.org/cl/295649 mentions this issue: |
Fixed and deployed. |
Confirmed, tyvm! |
What version of Go are you using (
go version
)?go1.15.8
Does this issue reproduce with the latest release?
No.
What operating system and processor architecture are you using (
go env
)?Not relevant (documentation issue)
What did you do?
Click "Run" on the filepath.Walk example on golang.org
https://golang.org/pkg/path/filepath/#Walk
What did you expect to see?
The output
What did you see instead?
A build error
Conclusion
The system running golang.org's documentation examples should run the examples using the same version of go for which the examples were written.
The text was updated successfully, but these errors were encountered: