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

cmd/go: document GORACE #69090

Closed
WilliamColton opened this issue Aug 27, 2024 · 1 comment
Closed

cmd/go: document GORACE #69090

WilliamColton opened this issue Aug 27, 2024 · 1 comment

Comments

@WilliamColton
Copy link

Go version

go version go1.22.3 windows/amd64

Output of go env in your module/workspace:

go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Administrator\AppData\Local\go-build
set GOENV=C:\Users\Administrator\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\Administrator\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Administrator\go
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=E:/Programming/go/sdk/go1.22.3
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=E:\Programming\go\sdk\go1.22.3\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.22.3
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=E:\Programming\go\kite\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\ADMINI~1\AppData\Local\Temp\go-build482139038=/tmp/go-build -gno-record-gcc-switches

What did you do?

run go env

What did you see happen?

GORACE is not listed.

What did you expect to see?

I expected to see the GORACE environment variable listed in the output when running the go env command after setting it using go env -w GORACE="halt_on_error=1". This variable should be present along with other environment variables like GOOS, GOARCH, etc., and should reflect the value that was set.

@seankhliao seankhliao changed the title go env does not list GORACE on Windows 11 cmd/go: document GORACE Aug 27, 2024
@seankhliao
Copy link
Member

GORACE is a runtime config setting for go programs, documented in the runtime package, see https://pkg.go.dev/runtime .

go help environment and go env are about settings which affect the go toolchain / compilation of go code.

Closing as out of scope.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants