-
Notifications
You must be signed in to change notification settings - Fork 18k
x/vgo: "no Go source files" when importing package google.golang.org/api #25994
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
Comments
|
Closing per @AlexRouSg's comment. (If you're having trouble importing specific subpackages, please reopen with more detail.) |
@AlexRouSg @bcmills what if the repo has not Go source (eg a repo if protobufs). |
@millergarym This issue is not about vgo supporting getting repo's with non go files. This is about importing a non go package and having a non go package in the mod file. That is not something vgo would allow you to do. Currently when vgo gets a package it gets the entire repo. So you shouldn't need to specifically tell it to get the non go files folders. |
@millergarym at present there is no concept of a "non go package": packages are defined by being just that, collections of Go (and related) code. See So whilst this might be a potential future extension of The workaround as described is to drop a single |
What version of Go are you using (
go version
)?go 1.10.3
vgo commit c07973ea63c163b154225425f63290d022df8650
What operating system and processor architecture are you using (
go env
)?windows
What did you do?
What did you see instead?
vgo build returned "no Go source files"
vgo list
vgo list -f "{{.}}" google.golang.org/api
also return a message along the line of no Go source.The text was updated successfully, but these errors were encountered: