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 package that was used in $GOPATH 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 have > been using this for a while now. trying go modules produces the same > error over and over > > Steps I followed > > unset $GOPATH just to be safe > > 1) git clone github project > > 2) go mod init > > 3) go build > > > and after some output where I can see it getting all the dependencies I > keep getting > > random.go:14:10: assignment mismatch: 2 variables but 1 values > random.go:29:10: assignment mismatch: 2 variables but 1 values > > Again reverting back to the normal $GOPATH way everything compiles fine > and I can start the binary. > -- 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.