Closed
Description
What version of Go are you using (go version
)?
$ go version 16.3
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
go env
go env
Output
$ go envPS C:\Users\cc\hello> go run .
Hello, World!
PS C:\Users\cc\hello> go version
go version go1.16.3 windows/amd64
PS C:\Users\cc\hello> go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\cc\AppData\Local\go-build
set GOENV=C:\Users\cc\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\cc\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\cc\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.16.3
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\cc\hello\go.mod
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\cc\AppData\Local\Temp\go-build4045804453=/tmp/go-build -gno-record-gcc-switches
PS C:\Users\cc\hello>
What did you do?
PS C:\Users\cc\hello> go run .
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
Example failed following your instructions
What did you expect to see?
Hello world
What did you see instead?
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
davecheney commentedon Apr 26, 2021
Could you please provide a link to the instructions.
gopherbot commentedon May 26, 2021
Timed out in state WaitingForInfo. Closing.
(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)