On Tue, 30 Jan 2018, at 7:59 AM, porridge via golang-nuts wrote:
> I admit I'm somewhat new to Golang, how do I solve this problem?
> My program uses two libraries, both of which have
> github.com/golang/glog in their /vendor/ directories.> This results in a 
> panic at runtime, apparently because two copies of
> glog try to initialize the same flag on initialization.
I think the accepted practice is to flatten your library's dependencies
so there is only one copy of the vendored glog package.
In general libraries should not include vendor directories and
dependencies should be managed by the application using the libraries in
its own vendor directory.
Ian

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to