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: install fails to warn of "no install location" for command-only package #4311

Closed
gopherbot opened this issue Oct 30, 2012 · 5 comments
Milestone

Comments

@gopherbot
Copy link

by ibexris:

On OSX with go 1.0.3.

I've cloned a github project (https://github.com/bmizerany/noeqd) into a random temp
directory, rather than my main code directory.  If I attempt to "go install"
the package (which contains only a binary output, no package/include files), it builds
the noeqd program but fails to install it (this may be related to issue #3652).

I would expect it either tries to install in the main GOROOT path (in OSX, this is
root-writable /usr/local/go/), or at least throw the "no install location"
error that is thrown when trying to build library-only packages.

Installing to the main path would be preferable to me, but I suspect the latter would be
more go-like.  However, because setting GOPATH to the same as GOROOT is a no-op, there
is no way to force a package to install in the main source tree.

FWIW, if I use sudo and set GOBIN=`go env GOROOT`/bin the noeqd binary installs just
fine at /usr/local/go/bin/.
@robpike
Copy link
Contributor

robpike commented Oct 30, 2012

Comment 1:

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

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Oct 30, 2012

Comment 2:

Issue #4312 has been merged into this issue.

@robpike
Copy link
Contributor

robpike commented Oct 30, 2012

Comment 3:

See comments from 4312

@rsc
Copy link
Contributor

rsc commented Dec 10, 2012

Comment 4:

Labels changed: added size-m.

@rsc
Copy link
Contributor

rsc commented Jan 31, 2013

Comment 5:

This issue was closed by revision 8b6534b.

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