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: #43534

Closed
fulkgl opened this issue Jan 6, 2021 · 3 comments
Closed

x/website: #43534

fulkgl opened this issue Jan 6, 2021 · 3 comments

Comments

@fulkgl
Copy link

fulkgl commented Jan 6, 2021

What version of Go are you using (go version)?

$ go version

go version go1.15.6 windows/amd64

Does this issue reproduce with the latest release?

yes. 2021-01-05 download and install.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\User\AppData\Local\go-build
set GOENV=C:\Users\User\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\User\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\User\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=D:\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\User\AppData\Local\Temp\go-build600556626=/tmp/go-build -gno-record-gcc-switches

What did you do?

Download windows 64 bit and install. During the install a GUI windows asked for the install location with a default of C:\GO.
I changed that to D:\GO. This machine the C drive is a small SSD and the D drive a large hard disk. The install worked. But, a few issues.
(1) env var set to GOPATH=C:\Users\User\go
There is no C:\Users\User\go dir.
(2) env var PATH has D:\Go\bin; added (which is correct) but then it also has added C:\Users\User\go\bin (which is wrong, does not exist).
(3) website (https://golang.org/doc/tutorial/getting-started) directions for "write some code" (the obligatory hello world, thx K+R). For windows it says "cd %HOMEPATH%". To be technically correct, it should have 2 lines. First "%HOMEDRIVE%" and "cd %HOMEPATH%" for the second line.
(4) website section "Call code in an external package". I think it wants me to install a package. But the directions are not clear. Change "Doc" to "Documentation". Someone used short hand. New users that's a bad idea.

BTW, on a different machine I did the install on a Big Sur Mac machine and without changing the default install location everything worked.

What did you expect to see?

MSI installer apparently wasn't expecting someone like me to change the install location.

What did you see instead?

@gopherbot gopherbot added this to the Unreleased milestone Jan 6, 2021
@AlexRouSg
Copy link
Contributor

GOPATH is not the install location, it is something like your workspace.
GOPATH/bin is the location to put compiled binaries when building programs with go install or using go get to download and compile programs.

@mvdan
Copy link
Member

mvdan commented Jan 6, 2021

The Go project doesn't use the issue tracker for questions. See https://golang.org/wiki/Questions.

@mvdan mvdan closed this as completed Jan 6, 2021
@ALTree
Copy link
Member

ALTree commented Jan 6, 2021

(4) is a valid point IMO. The tutorial says "On the Doc tab" but on pkg.go.dev that tab is "Documentation"; should probably fix the tutorial.

@golang golang locked and limited conversation to collaborators Jan 6, 2022
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

5 participants