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: better error message for package name collision with package from std lib #5774

Closed
kortschak opened this issue Jun 25, 2013 · 4 comments
Labels
FrozenDueToAge Suggested Issues that may be good for new contributors looking for work to do.
Milestone

Comments

@kortschak
Copy link
Contributor

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Attempt to build the package at http://play.golang.org/p/uA7dcZxK6E when the package
directory is located in $GOPATH/src/

What is the expected output?
And informative error indicating that a reserved package name has been used.

What do you see instead?
go install: no install location for directory /home/user/Development/src/fmt outside
GOPATH

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Linux (Ubuntu 12.04)

Which version are you using?  (run 'go version')
go1.1 (repeated with tip 93b0218944ca)

Please provide any additional information below.
$ go env
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/user/Development"
GORACE=""
GOROOT="/usr/local/src/go"
GOTOOLDIR="/usr/local/src/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
CGO_ENABLED="1"
@davecheney
Copy link
Contributor

Comment 1:

Thanks. Tentatively scheduling for Go 1.2. If you (anyone, not just Dan) intends to work
on this issue, please discuss your solution on the mailing list first.

Labels changed: added priority-later, go1.2, suggested, removed priority-triage.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Jun 25, 2013

Comment 3:

I have a CL pending for this from March.

@rsc
Copy link
Contributor

rsc commented Jul 30, 2013

Comment 4:

Owner changed to @rsc.

Status changed to Started.

@rsc
Copy link
Contributor

rsc commented Sep 10, 2013

Comment 5:

This issue was closed by revision d5fbad0.

Status changed to Fixed.

@kortschak kortschak added fixed Suggested Issues that may be good for new contributors looking for work to do. labels Sep 10, 2013
@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Suggested Issues that may be good for new contributors looking for work to do.
Projects
None yet
Development

No branches or pull requests

4 participants