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: Support depending on binary modules #24051
Currently vgo does not allow depending on binary modules (I might be wrong? But that's at least an error message I saw when playing around with it. If I'm wrong, disregard this). I would like to request that we allow that (potentially only for the top-level module, to limit the blast radius a little bit), with the semantics that any binary module depended on will be installed. In this way, they would be similar to Debian metapackages (and I might refer to them as metapackages for that reason).
I believe this would enable or simplify several workflows that I care about. The general pattern here is, that you can write a go.mod file which contains a list of binaries you care about with associated versions.
There are several cases where I believe this might be interesting:
You can create a go.mod listing the versions of modules containing commands you care about.
I don't think vgo itself should grow support for that kind of expansion, though.
@rsc This pattern doesn't seem to work with vendoring in the current implementation in the go command. If I add
Should I file a separate issue about it? Or is it just a sub-case of #26366?