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

affected/package: go env #52230

Closed
ZephryLiang opened this issue Apr 8, 2022 · 1 comment
Closed

affected/package: go env #52230

ZephryLiang opened this issue Apr 8, 2022 · 1 comment

Comments

@ZephryLiang
Copy link

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

Go1.16

$ go version

Does this issue reproduce with the latest release?

no

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

win10

go env Output
$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\001\AppData\Local\go-build
set GOENV=C:\Users\001\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\001\go\pkg\mod
set GONOPROXY=five.com/library.git
set GONOSUMDB=five.com/library.git
set GOOS=windows
set GOPATH=C:\Users\001\go
set GOPRIVATE=five.com/library.git
set GOPROXY=https://goproxy.cn,direct
set GOROOT=C:\Users\001\go\go1.16
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Users\001\go\go1.16\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.16
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=D:\testmod\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 -fme
ssage-length=0 -fdebug-prefix-map=C:\Users\001\AppData\Local\Temp\go-build20
37510353=/tmp/go-build -gno-record-gcc-switches

What did you do?

once upon a time, GOPRIVATE is set.But today,i want to modify the variable by "go env -w".It warns:warning: go env -w GOPRIVATE=... does not override conflicting OS environmen
t variable

What did you expect to see?

how can i modify/unset the GOPRIVATE

What did you see instead?

@seankhliao
Copy link
Member

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@golang golang locked and limited conversation to collaborators Apr 8, 2023
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

3 participants