Re: [go-nuts] Re: Cannot build after upgrading to Go 1.16

2021-02-25 Thread Amnon
Because stdlib was written before modules were a thing. Regarding the "lets keep GOPATH going" argument, there was an issue about this on github where the arguments around the issue were fully explored. https://github.com/golang/go/issues/37755#issuecomment-771879911 > thanks. expressed virt

Re: [go-nuts] Re: Cannot build after upgrading to Go 1.16

2021-02-24 Thread 'simon place' via golang-nuts
On Wednesday, 24 February 2021 at 08:10:01 UTC jonr...@gmail.com wrote: > i had a similar experience where i ended up pull-requesting the addition > of mod&sum into a dependency. fair enough for actively maintained packages > or packages you've contributed to before but could be problematic >

Re: [go-nuts] Re: Cannot build after upgrading to Go 1.16

2021-02-24 Thread Amnon
Go modules were introduced back in 2018, so we have had a good few years to migrate. In most cases migrating simply means running go mod init, and commiting the go.mod and go.sum files. Migrating does cause a small amount of pain. But it will improve your life as a developer. The existence of

Re: [go-nuts] Re: Cannot build after upgrading to Go 1.16

2021-02-24 Thread Jon Reiter
i had a similar experience where i ended up pull-requesting the addition of mod&sum into a dependency. fair enough for actively maintained packages or packages you've contributed to before but could be problematic otherwise. (insert any linux/bsd talk about contributing changes upstream here) it

Re: [go-nuts] Re: Cannot build after upgrading to Go 1.16

2021-02-23 Thread Kurtis Rader
On Tue, Feb 23, 2021 at 7:24 PM 'simon place' via golang-nuts < golang-nuts@googlegroups.com> wrote: > > Insufficient information. What command did you run? What was the output? >> Note that module mode is now the default with Go 1.16. You can get the Go >> 1.15 behavior by exporting GO111MODULE=a

[go-nuts] Re: Cannot build after upgrading to Go 1.16

2021-02-23 Thread 'simon place' via golang-nuts
you could just make non-modules repos 'look like' a module with one version. On Wednesday, 24 February 2021 at 03:23:47 UTC simon place wrote: > On Wednesday, 24 February 2021 at 02:26:39 UTC Kurtis Rader wrote: > >> On Tue, Feb 23, 2021 at 5:03 PM 'simon place' via golang-nuts < >> golan...@goog

[go-nuts] Re: Cannot build after upgrading to Go 1.16

2021-02-23 Thread 'simon place' via golang-nuts
On Wednesday, 24 February 2021 at 02:26:39 UTC Kurtis Rader wrote: > On Tue, Feb 23, 2021 at 5:03 PM 'simon place' via golang-nuts < > golan...@googlegroups.com> wrote: > >> nothing compiles any more! >> >> i seem to be being forced to add, to some projects 9 years old >> (unnecessary) module s