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: exit with error when $GOPATH is set to "." #4062

Closed
gopherbot opened this issue Sep 11, 2012 · 5 comments
Closed

cmd/go: exit with error when $GOPATH is set to "." #4062

gopherbot opened this issue Sep 11, 2012 · 5 comments
Milestone

Comments

@gopherbot
Copy link

by nicksaika:

Running "GOPATH=. go build pkg/foo" should be disallowed when $GOPATH is set
to "." as the compile process usually errors out by saying it cannot find a
particular file, even though that file definitely exists.

Granted, running the command like so "GOPATH=$PWD go build pkg/foo" works
successfully, but perhaps the go tool should notice when $GOPATH is set to "."
and error out.
@rsc
Copy link
Contributor

rsc commented Sep 11, 2012

Comment 1:

Maybe it should disallow any relative $GOPATH entry.

@gopherbot
Copy link
Author

Comment 2 by nicksaika:

That would be good; my thinking is if relative paths in $GOPATH cause the compile
process to fail, why not notice the error before-hand, and gracefully error out?

@rsc
Copy link
Contributor

rsc commented Sep 12, 2012

Comment 3:

Labels changed: added priority-later, removed priority-triage.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Sep 12, 2012

Comment 4:

Labels changed: added go1.1.

@robpike
Copy link
Contributor

robpike commented Sep 17, 2012

Comment 6:

This issue was closed by revision 916ccbf.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
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