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: go command cannot detect confliction correctly #18875

Closed
hirochachacha opened this issue Feb 1, 2017 · 2 comments
Closed

cmd/go: go command cannot detect confliction correctly #18875

hirochachacha opened this issue Feb 1, 2017 · 2 comments
Milestone

Comments

@hirochachacha
Copy link
Contributor

Please answer these questions before submitting your issue. Thanks!

What did you do?

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

$ GOROOT="$HOME/go" GOPATH="$HOME/go" go env | grep warning

warning: GOPATH set to GOROOT (/Users/hiro/go) has no effect

$ GOROOT="$HOME/go/./" GOPATH="$HOME/go//" go env | grep warning

What did you expect to see?

same outputs

What did you see instead?

different outputs

Does this issue reproduce with the latest release (go1.7.5)?

I think so.

System details

go version devel +3e55059 Mon Jan 30 20:38:03 2017 +0000 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/hiro/.go"
GORACE=""
GOROOT="/Users/hiro/go"
GOTOOLDIR="/Users/hiro/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wq/dwn8hs0x7njbzty9f68y61700000gn/T/go-build805880882=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
GOROOT/bin/go version: go version devel +3e55059 Mon Jan 30 20:38:03 2017 +0000 darwin/amd64
GOROOT/bin/go tool compile -V: compile version devel +3e55059 Mon Jan 30 20:38:03 2017 +0000 X:framepointer
uname -v: Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.12.2
BuildVersion:	16C67
lldb --version: lldb-360.1.70
gdb --version: GNU gdb (GDB) 7.12
@hirochachacha hirochachacha changed the title cmd/go: cmd/go: go command cannot detect confliction correctly Feb 1, 2017
@bradfitz bradfitz added this to the Go1.9 milestone Feb 1, 2017
@gopherbot
Copy link

CL https://golang.org/cl/36074 mentions this issue.

@hirochachacha
Copy link
Contributor Author

Fixed by 57d06ff.

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