Many thanks Axel.

The problem isn't github.com/aperum/nrpe - that doesn't have any 
dependencies of its own outside of the standard library.  However, the 
following three weren't vendored either:

github.com/prometheus/client_golang/prometheus
github.com/prometheus/client_golang/prometheus/promhttp
github.com/prometheus/common/version

and I believe one or more of them is requiring newer versions of the 
libraries which were vendored in.  It would be helpful if go said "I'm 
pulling in the latest version of github.com/prometheus/common/version - and 
by the way, to meet its requirements, I've had to increase the go.mod 
dependency of Foo from 2.2.5 to 2.2.6".  But I think I know enough now to 
proceed.

This is someone else's project I'm contributing to.  They want to keep the 
vendor/ directory.  So rather than trying to find the correct old versions 
of those libraries and vendor them, I've gone with:

go mod init ...
go mod tidy
go mod vendor

which has refreshed all the dependencies (including the missing entries in 
the vendor/ directory) - and then fixed the code to work with the new 
dependencies.  This means it should be good going forward from this point.

Thanks again,

Brian.

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/fad56369-d555-45a0-b8f1-e9478a69ce3f%40googlegroups.com.

Reply via email to