Hi,

I'm exploring splitting up the main Prometheus repo (
https://github.com/prometheus/prometheus) into a main module and several 
library modules.

We'd like to avoid having to update versions in the main module's go.mod 
for any change to a local module, which I can already solve with "replace" 
pointing to a relative path in the same repo.

However, the main module also currently vendors all dependencies using "go 
mod vendor", and we build using "go build -mod=vendor", which *only* reads 
dependencies from the local "vendor/" dir and ignores go.mod. That means 
we'd still have to run "go mod vendor" after any change to a local module, 
to pick up those changes in the main module. Just deleting the repo-local 
modules from the "vendor/" dir doesn't help, since then those packages / 
modules aren't found at all. There doesn't seem to be a way to turn use 
vendoring only for non-local dependencies.

So: Any practical advice for how to minimize dep versioning maintenance 
work with between multiple modules in a repo when using vendoring?

Thanks!

Julius

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/0c62cf4e-a0b4-4c0a-9bb9-d784204c804e%40googlegroups.com.

Reply via email to