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 get -d gives needless and confusing error #11803

Closed
robpike opened this issue Jul 21, 2015 · 5 comments
Closed

cmd/go: go get -d gives needless and confusing error #11803

robpike opened this issue Jul 21, 2015 · 5 comments

Comments

@robpike
Copy link
Contributor

robpike commented Jul 21, 2015

% go get -d golang.org/x/mobile
package golang.org/x/mobile
imports golang.org/x/mobile: no buildable Go source files in /Users/r/src/golang.org/x/mobile
%

I see this message often when I want to grab a repository but not yet build it. Maybe I am unusual in this respect, but the error message is unnecessary (I asked to download it, not build it) and odd (the two-line format is peculiar and the "imports" word seems irrelevant to the invocation).

@robpike robpike added this to the Unplanned milestone Jul 21, 2015
@adg
Copy link
Contributor

adg commented Jul 21, 2015

This is working as intended according to #11090.

@adg adg closed this as completed Jul 21, 2015
@robpike
Copy link
Contributor Author

robpike commented Jul 22, 2015

That issue doesn't address the weird message, only the presence of one.

@robpike robpike reopened this Jul 22, 2015
@adg
Copy link
Contributor

adg commented Jul 22, 2015

The message is presented because you have asked the go tool to download
this package and its dependencies, but there is no package there.

Assuming that such a message should be presented (what the other issue is
about), what should it say instead?

On 22 July 2015 at 13:49, Rob Pike notifications@github.com wrote:

Reopened #11803 #11803.


Reply to this email directly or view it on GitHub
#11803 (comment).

@robpike
Copy link
Contributor Author

robpike commented Jul 23, 2015

Just please tell me what
"package golang.org/x/mobile imports golang.org/x/mobile: " is doing in this message.
It's not true, and it can't be true, and it's a message about a circular dependency for a package that doesn't even exist.

That's what I'm complaining about.

@ALTree
Copy link
Member

ALTree commented Jan 12, 2017

go1.8 error message:

package golang.org/x/mobile: no buildable Go source files in [...]/src/golang.org/x/mobile

no weird circular dependency message, so it looks like this is fixed.

@ALTree ALTree closed this as completed Jan 12, 2017
@golang golang locked and limited conversation to collaborators Jan 12, 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

4 participants