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

Missing subpackages #4

Closed
sethgrid opened this issue Oct 11, 2016 · 2 comments
Closed

Missing subpackages #4

sethgrid opened this issue Oct 11, 2016 · 2 comments

Comments

@sethgrid
Copy link

I am not seeing subpackages included in the gopkgs command that are seen with the go list all command.

I ran into this using VSCode and opened an issue with them (microsoft/vscode-go#521); it appears they leverage gopkgs.

I created a repo to illustrate the issue I was facing with VSCode here: https://github.com/sethgrid/vscode_autocomplete_issue

I believe that it should show a repro case for gopkgs too. When I cd into that directory, and do gopkgs | grep sethgrid, I do not see subone or subtwo. However, I do see those if I go list all | grep sethgrid.

@tpng
Copy link
Owner

tpng commented Oct 12, 2016

Have you go installed the sub packages too? Since gopkgs will only list packages that are in the $GOPATH/pkg folder.

You will have to run either go get github.com/sethgrid/vscode_autocomplete_issue/... or go install github.com/sethgrid/vscode_autocomplete_issue/... (the 3 dots in the end means install the subpackages too).

@sethgrid
Copy link
Author

sethgrid commented Oct 12, 2016

You can see in the latest update at microsoft/vscode-go#521 that the issue I faced was due to my files not yet being in the pkg dir, but only in my src dir. Maybe that makes this a non-issue for gopkgs?

[EDIT] I posted ^^ without refreshing the page and missed your post from 2 hours ago (facepalm). You are correct, the issue is needing to run go install or go get. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants