-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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/tour: instructions for running Go tour offline are malformatted #24819
Comments
Thanks for the report. I have a comment about your first point.
The full paragraph says:
The two things go together: it's one sentence. The hyperlink at the "download and install Go" text points to golang.org/dl, which instructs the reader to install go from the pre-compiled binaries. It is implied that you can expect the command to work out-of-the-box only if you followed the instructions immediately above and installed go from the website. While we could fill the docs with notes and warnings about possible different ways to do things (like installing from OS packages), I think this would make the documentation very unpleasant to read. In general, it's clearer to document a simple, happy path (especially in tutorials like the Go Tour, where it's generally a bad idea to hit the reader with too much -possibly useless- text). Users are expected to follow that path, or be ready to troubleshot their problems if they decide to deviate. |
I think that is unnecessary. Next up, people will start asking for this reminder to be added under all We should just need one page to clearly document the installation steps. And that is very well documented at https://golang.org/doc/install. |
I'm not suggesting that that advice be added everywhere, but given that it's on page three of the entire tour, I don't think it's out of place to make sure readers know how to set up properly. And the page you're referring to is not part of the tour. Why so much resistance to adding a single line to make sure readers don't run into a problem? |
Not at all. My only concern was that information might get duplicated into multiple places. Otherwise I have no strong opinions on this. If it helps newcomers, I am all for it. 👍 Sorry if I was misunderstood. |
I don't understand why this has been labelled as
That's not the case. It's not clear what exactly should be done here. This is a |
ping @ianlancetaylor, @bradfitz for decision. |
For completeness, since I didn't see it mentioned above: even if the user is confused by both offline install options, there's always a third option: using the web-based tour that the user's already found if they're reading that page. I don't really want to mention $GOPATH because $GOPATH might be implicit, and it might be spelled %GOPATH% on Windows, if it's set at all. Likewise, I don't want to assume bash and recommend running If anything, we could modify the Then we could even remove some of the text on the tour page and only mention |
Not sure when it started to work, but (I also mentioned this in the Golang Tour tracker, so if this repository isn't for the Tour at all, as mentioned ^, it could be closed here?) |
This comment has been minimized.
This comment has been minimized.
"go tool tour" works on Mac. |
Yes, that's what I said. Unfortunately, the instructions aren't updated yet. |
"go tool tour" is dead as of Go 1.12. Maybe that should be in the release notes (@andybons, @dmitshur, @ianlancetaylor). But the formatting at https://tour.golang.org/welcome/3 is a mess and doesn't seem to match https://github.com/golang/tour/blob/master/content/welcome.article#L80 Let's make this bug about fixing that. |
Change https://golang.org/cl/158618 mentions this issue: |
Note the removal of the go tool tour command in the Go 1.12 release notes. Updates #24819 Change-Id: I258ab9401ea2cc06a83328c67299376fcf23c980 Reviewed-on: https://go-review.googlesource.com/c/158618 Reviewed-by: Brad Fitzpatrick <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]> Reviewed-by: Andrew Bonventre <[email protected]>
Note the removal of the go tool tour command in the Go 1.12 release notes. Updates golang#24819 Change-Id: I258ab9401ea2cc06a83328c67299376fcf23c980 Reviewed-on: https://go-review.googlesource.com/c/158618 Reviewed-by: Brad Fitzpatrick <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]> Reviewed-by: Andrew Bonventre <[email protected]>
Note the removal of the go tool tour command in the Go 1.12 release notes. Updates golang#24819 Change-Id: I258ab9401ea2cc06a83328c67299376fcf23c980 Reviewed-on: https://go-review.googlesource.com/c/158618 Reviewed-by: Brad Fitzpatrick <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]> Reviewed-by: Andrew Bonventre <[email protected]>
At page https://tour.golang.org/welcome/3 it is specified that command
is way to go. But looks like that first command has no effect, It is also unclear what and where software is installed. For example command
does not output anything on std-out, except it seems to return correct exit code. I cant find tour binary on my system After some playing around with go help , my setup is now:
And this seems to work for my particular debian system (your mileage may vary) Extra: I later found out that binary is located at |
The formatting issue was fixed in 7de0bd1d74c6d868b2007ca43ea240671a6618f1, so we can close this.
It's from go get. |
Change https://golang.org/cl/197857 mentions this issue: |
Re-add the link to installing Go on the welcome/3 slide, because it's a pre-requisite for being able to run go get. This was included before, but got lost in a refactor after the tour binary moved out of the Go distribution. Additionally, make it more clear that installing the tour locally is an optional step that only needs to be done if one wishes to run the tour offline; it's not mandatory to get through the tour. Running the tour online has a lower overhead, and should help keep the tour accessible to more people. Fixes golang/go#34585 Updates golang/go#24819 Change-Id: If5f51e9e876722a86afca054bf78428f78bb3076 Reviewed-on: https://go-review.googlesource.com/c/tour/+/197857 Reviewed-by: Emmanuel Odeke <[email protected]>
There seem to be two issues with the instructions for how to run the Go tour offline here.
First, on my Fedora system, even though I have installed Go 1.10.1 from binary rpms, running
go tool tour
doesn't work (perhaps this requires installing a distinct Fedora package that is not mentioned):The second issue is that, before trying to run these commands:
the reader should be reminded to add
${GOPATH}/bin
to their search path.The text was updated successfully, but these errors were encountered: