On Saturday, April 1, 2017 at 2:59:16 AM UTC+2, Ian Lance Taylor wrote: > > On Fri, Mar 31, 2017 at 9:28 AM, Basile Starynkevitch > <bas...@starynkevitch.net <javascript:>> wrote: > > > > On Friday, March 31, 2017 at 4:14:19 PM UTC+2, Ian Lance Taylor wrote: > >> > >> On Fri, Mar 31, 2017 at 6:49 AM, Ian Lance Taylor <ia...@golang.org> > >> wrote: > >> > > >> > It depends. The main command that generates output is `go install`, > >> > and it stores the output under $GOROOT/pkg. > >> > >> Whoops, I meant $GOPATH/pkg. $GOROOT/pkg is only used for the standard > >> library. > > > > > > > > I'm still really confused by getting quite often a very cryptic message: > > > > multiple roots /home/basile/go/pkg/linux_amd64 & > > /usr/lib/go-1.8/pkg/linux_amd64_dynlink > > > > the funny thing is that both of these are directories, not files. In my > > understanding that message means a conflict between two files for the > same > > package. And I have no idea about what files have been conflicting. If > the > > message is a conflict between files, why does not it name these files? > > That error message means that the go tool does not know where to > install a file. It may mean that you are trying to use > -buildmode=shared with some standard library packages and some > packages from your GOPATH. It's not a conflict between different > files; it's talking about which directory it should put the shared > library in. > > Ian >
Is there a way to understand where the mandatory go install -buildmode=shared std is installing its stuff? Is there a way to check that the above command has been previously and successfully run? Is there a way to avoid the cryptic message: multiple roots /home/basile/go/pkg/linux_amd64 & /usr/lib/go-1.8/pkg/linux_amd64_dynlink perhaps by forcing in which directory a file should be installed? (If there is some way to avoid that multiple roots message, I would suggest that the error message would mention it; giving only the two words multiple roots as an explanation is really not enough) Cheers. Basile Starynkevitch -- 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.