Skip to content

cmd/go: go env -changed prints changed values for variables in go.env #67542

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

Closed
matloob opened this issue May 21, 2024 · 1 comment
Closed

cmd/go: go env -changed prints changed values for variables in go.env #67542

matloob opened this issue May 21, 2024 · 1 comment
Assignees
Labels
GoCommand cmd/go NeedsFix The path to resolution is known, but the work has not been done.

Comments

@matloob
Copy link
Contributor

matloob commented May 21, 2024

Go version

go version devel go1.23-ecad164da7 Mon May 20 21:11:08 2024 +0000 darwin/arm64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/matloob/Library/Caches/go-build'
GOENV='/Users/matloob/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/matloob/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/matloob/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/matloob/devgo'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/Users/matloob/devgo/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='devel go1.23-ecad164da7 Mon May 20 21:11:08 2024 +0000'
GODEBUG=''
GOTELEMETRY='on'
GOTELEMETRYDIR='/Users/matloob/Library/Application Support/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/k3/3s_zz9nx1ms089s9vjb70xw8004_sl/T/go-build828412130=/tmp/go-build -gno-record-gcc-switches -fno-common'

What did you do?

ran go env -changed

What did you see happen?

got the output

GOPROXY='https://proxy.golang.org,direct'
GOSUMDB='sum.golang.org'

What did you expect to see?

no output.

Those are the settings in my go.env, so they are essentially the defaults. I shouldn't see a diff.

qiulaidongfeng added a commit to qiulaidongfeng/go that referenced this issue May 21, 2024
From go.env file got GOPROXY and GOSUMDB default value.

FIxes golang#67542

Change-Id: Ifaeb59121b5b2c4937e8aaecb4ed291d95987e4c
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/587160 mentions this issue: cmd/go: set GOPROXY and GOSUMDB default value correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GoCommand cmd/go NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants