[go-nuts] Re: go modules go build fails - normal go build with $GOPATH set works

2018-12-26 Thread Robert Recchia
The versions are the same i have verified through md5 sums and if i remove the go.mod and go.sum files and then run a go build it compiles without problems. On Tuesday, 25 December 2018 20:22:22 UTC-5, Robert Recchia wrote: > > I have been testing out the new go modules feature. Our applic

[go-nuts] Re: go modules go build fails - normal go build with $GOPATH set works

2018-12-26 Thread Robert Recchia
and the repo that is failing is my own repo where we do not use versions/releases On Tuesday, 25 December 2018 20:22:22 UTC-5, Robert Recchia wrote: > > I have been testing out the new go modules feature. Our application > compiles/installs without problems using the normal $GOPATH way and hav

[go-nuts] Re: go modules go build fails - normal go build with $GOPATH set works

2018-12-26 Thread thepudds1460
Hi Robert, Just to echo what Sam said, there is a healthy chance this could be explained by a version mismatch, although maybe it could be something else. When you enable modules, by default it will look for the latest valid semver tag (https://semver.org) to satisfy any dependencies. For examp

[go-nuts] Re: go modules go build fails - normal go build with $GOPATH set works

2018-12-27 Thread Robert Recchia
well i want to thank everyone for there suggestions it was indeed version mismatch. It took a while to get it right but with some replace commands in my go.mod finally go build now builds the binary. quick question is there a way to tell go modules to use the src directory for all the packag