-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Description
What version of Go are you using (go version)?
Go 1.17.6 (originally reproducible in Go 1.17.5, I upgraded to GO 1.17.6 in the hope it is fixed, but it's not)
sandbox# go version go version go1.17.6 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
sandbox# go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOENV="/root/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/root/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/root/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/opt/go-1.17.6" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/opt/go-1.17.6/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.17.6" GCCGO="/usr/bin/gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/root/hello/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3390657096=/tmp/go-build -gno-record-gcc-switches"
What did you do?
Followed the Go tutorial from Go website: https://go.dev/doc/tutorial/getting-started
I went as far as step 5 (creating hello.go).
When I tried to do step 6 (run go program: go run .), I encounter the error.
What did you expect to see?
The hello.go program to run and show the text "Hello world!" on console.
What did you see instead?
The following error:
# example/hello 2022/01/08 15:48:06 main: reference to nonexistent package os sandbox#
Reactions are currently unavailable