[go-nuts] Re: Replace modules from command line

2019-08-08 Thread Peter Feichtinger
This would do pretty much exactly what I want. I'll be watching that, thanks. On Thursday, August 8, 2019 at 11:20:26 AM UTC+2, Elias Naur wrote: > > I don't think it's possible today. There is an issue for it: > https://github.com/golang/go/issues/26640 > > - elias > -- You received this mes

Re: [go-nuts] Replace modules from command line

2019-08-08 Thread Peter Feichtinger
Yeah I was expecting that would be necessary. Thanks for your input anyway. On Tuesday, August 6, 2019 at 7:11:04 PM UTC+2, Paul Jolly wrote: > > You won't be able to avoid editing the go.mod - it's the starting point > for all module resolution. > > How about taking a copy of the original go.{mo

Re: [go-nuts] Replace modules from command line

2019-08-05 Thread Peter Feichtinger
> > On Mon, 5 Aug 2019, 18:45 Peter Feichtinger, > > wrote: > >> Hi Go Nuts, >> >> I have a rather unusual use case and I'm hoping for some input. >> >> For testing purposes, I want to build a Go binary with different versions >> of one of it

[go-nuts] Replace modules from command line

2019-08-05 Thread Peter Feichtinger
Hi Go Nuts, I have a rather unusual use case and I'm hoping for some input. For testing purposes, I want to build a Go binary with different versions of one of its dependencies. The only way I could think of was to modify the go.mod file to add a replace directive with the version I want to tes