-
Notifications
You must be signed in to change notification settings - Fork 17.3k
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: not versioning non-go-source resources #26244
Comments
@mdlayher its a bit unclear from your title what exactly the issue is. But if you are expecting to be able to have vgo pull down go packages and put them in your vendor directory, then you need to execute this command:
|
I'm not the issue author; I just added the vgo tag. |
vgo vendor (now vgo mod -vendor or go mod -vendor) does not copy entire repositories. By design, it copies only the directories needed to satisfy imports in builds of the top-level module. If your module is not importing github.com/antlr/grammars-v4 then that directory will not be copied. And if there are directories with only non-Go files, there is no way to copy those directories into vendor. That's not what vendor is for. Vendor is only about preserving the code needed to build the main module. |
Please answer these questions before submitting your issue. Thanks!
What did you do?
vgo get github.com/antlr/grammars-v4
vgo vendor
What did you expect to see?
a vendor directory containing the grammars
What did you see instead?
no vendor dir (no other dependencies yet)
Does this issue reproduce with the latest release (go1.10.3)?
Unknown
System details
The text was updated successfully, but these errors were encountered: