Build all modules and in obs directly from this repo #23
Reference in New Issue
Block a user
Delete Branch "jzerebecki/autogits:build-all"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Build all modules and in obs directly from this repo
Build each go module in a subpackage.
Merge all go.mod into a top level one
Rename bots-common to common
to make it match the name it is imported as
Thanks. I will look how we can fix this need for so many vendor files. Ideally, you should be able to merge these go.mod files and generate one vendor tarball. Anything else is not required there, except the go.sum. I don't know why that service wants to package sources that are just in different directories or why it even needs tarballs. It should download the go stuff based on go.sum.
https://faun.pub/understanding-go-mod-and-go-sum-5fd7ec9bcc34
done. It's basically
go getand then tarball the directories for the service.I'm mainly complaining about this go_modules service that seems to be doing funny things...
ok, so , it uses
go mod vendorprobably and that is not so smart and vendors modules that are not only from remote but also relative paths.98d2871578tocf002ec6b3Rebased and added go.sum file that was missing which fixed vendoring for one module.
Yes, it uses go mod vendor. Maybe with a top level go.mod and sums file go mod vendor would have no reason to copy the local path as it is not a different go.mod anymore?
In adamm/autogits#20 (comment) you said that one needs to go generate to be able to create the vendor tar balls for workflow-direct and workflow-pr.
Which the code specifies to need mockgen, but that does not seem to be packaged in Factory, correct? Would you be willing to commit the generated files in this repo?
mockgen is for
go generate. Maybe it should be packaged for Factory then 😉. Should probably go todevel:languages:goand just expose the mockgen tool there.https://github.com/uber-go/mock
cf002ec6b3to2ed4f0d05fWIP: Build all go modules each in a subpackageto Build all modules and in obs directly from this repoMerged the go.mod, which fixed the copied local module.