Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/vgo: allow "vgo vendor" to fill in vendor dir in subdir of module root #24237
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Ok, I tried the following:
(note: nested go.mod for the command within a go.mod for the package root / module root)
when I run
however no require directives get written. If I execute
can't load package: import cycle not allowed
vgo vendor: open /home/john/src/gocode/src/github.com/the42/badge/cmd/service/vendor/vgo.list: no such file or directory
I guess you meant to completely separate the package from the command, but that way it's no longer nicely encapsulated
I don't think we're going to do this. The module defines a set of code versions that apply to the whole modules, not to just one subdirectory. "vgo vendor" is about freezing everything for the module, not just one command. The right place for the vendor dir really is the module root, not piecemeal within the module tree.