fix(cmd): build with local v1 and v2 mods#640
fix(cmd): build with local v1 and v2 mods#640davidebeatrici wants to merge 2 commits intoipld:masterfrom
Conversation
|
Tagging was intentional here, slightly annoying, but on purpose. Using a We could add a I'd be happy to merge a PR with that I think. |
|
For context: while packaging this for OpenMandriva (https://github.com/OpenMandrivaAssociation/car) I realized the v1 and v2 mods were being pulled in as external dependencies because The workflow goes like this:
Thank you for the explanation regarding the dual-tagging design. Maybe it would make sense to split this into separate repositories, considering the modules may be used by external projects? |
|
OK, that sounds like a bit of friction. But multi-module Go repos are pretty standard, and the Go tooling treats them as separate, so when you Perhaps the distro build script could just copy the local ./ and ./v2 directories into the vendor tree at the right module paths instead of relying on |
|
To be fair, our main concern is ensuring everything is built from source (bar a few exceptions, such as firmware blobs). I just checked and it looks like with Go modules are never brought in as a binary but always as a source, which is really nice. We can indeed copy the local mods into the vendor tree, but at this point it's not a problem since I don't have much experience with Go, so please correct me if I'm wrong. |
|
That all sounds good to me, and I think the original concern here might be resolved? Correct me if I'm wrong but I'll close this for now. |
|
It's indeed solved, thank you again! |
No description provided.