Skip to content
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

x/website: Getting started tutorial errors out on TLS handshake due to out of date package #59259

Closed
Jesse-Culver opened this issue Mar 27, 2023 · 1 comment

Comments

@Jesse-Culver
Copy link

The "Tutorial: Get started with Go" recommends the wrong package version of rsc.io/quote. Using the standard 1.5.2 version results in TLS handshake errors. Switching to v4 gives the expected results.

Related Issues

#51188

Raised this as a separate issue as that issue is in regards to the wording surrounding searching for the package. This issue is in regards to the code now completely failing to work as it is written in the tutorial.

What is the URL of the page with the issue?

https://golang.google.cn/doc/tutorial/getting-started

What is your user agent?

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

Screenshot

Website:
image
Terminal trying v1.5.2 of risc.io/quote showing error out on mod tidy
image
Terminal trying v4 and it successfully downloading and executing the program
image

Code

Original Code:

package main

import "fmt"

import "rsc.io/quote"

func main() {
    fmt.Println(quote.Go())
}

Changed Code:

package main

import "fmt"

import "rsc.io/quote/v4"

func main() {
    fmt.Println(quote.Go())
}

Go Version

go version go1.20.2 linux/amd64

OS

Ubuntu 20.04.6 LTS running under WSL

What did you do?

Followed the tutorial as it was written. Adding /v4 to the import and rerunning mod tidy corrected the error.

What did you expect to see?

Mod tidy should have executed with downloading the module.

What did you see instead?

Mod tidy error-ed out a TLS handshake.

Error Messages Seen

rsc.io/quote: rsc.io/quote@v1.5.2: verifying module: rsc.io/quote@v1.5.2: Get "https://sum.golang.org/lookup/rsc.io/quote@v1.5.2": remote error: tls: handshake failure

rsc.io/quote: module rsc.io/quote: Get "https://proxy.golang.org/rsc.io/quote/@v/list": remote error: tls: handshake failure

@gopherbot gopherbot added this to the Unreleased milestone Mar 27, 2023
@seankhliao
Copy link
Member

This looks more like an issue with your network connection than anything with the go command or the proxy

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2023
@golang golang locked and limited conversation to collaborators Mar 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants