Re: [go-nuts] querying whether the go command would run in module mode

2019-12-09 Thread Paul Jolly
I raised https://github.com/golang/go/issues/36052 for discussion. On Mon, 9 Dec 2019 at 10:29, Dan Kortschak wrote: > > Thanks. > > Yes, I always have GO111MODULE=on, hence the difference. > > On Mon, 2019-12-09 at 10:04 +, Paul Jolly wrote: > > > When you're not in a module it returns

Re: [go-nuts] querying whether the go command would run in module mode

2019-12-09 Thread Dan Kortschak
Thanks. Yes, I always have GO111MODULE=on, hence the difference. On Mon, 2019-12-09 at 10:04 +, Paul Jolly wrote: > > When you're not in a module it returns /dev/null on linux. I don't > > suppose this is platform independent? > > I have to say what you saw surprised me until Daniel Martí

Re: [go-nuts] querying whether the go command would run in module mode

2019-12-09 Thread Paul Jolly
> When you're not in a module it returns /dev/null on linux. I don't > suppose this is platform independent? I have to say what you saw surprised me until Daniel Martí and I did a bit of experimentation. It seems the value of GO111MODULE matters here. If you have GO111MODULE=on then the result

Re: [go-nuts] querying whether the go command would run in module mode

2019-12-09 Thread Jamil Djadala
On Mon, 09 Dec 2019 19:57:48 +1030 Dan Kortschak wrote: > Thanks. > > When you're not in a module it returns /dev/null on linux. I don't > suppose this is platform independent? Hi, This command: go env GOMOD returns 1 emty line, i dont see any /dev/null ? -- Jamil Djadala -- You received

Re: [go-nuts] querying whether the go command would run in module mode

2019-12-09 Thread Dan Kortschak
Thanks. When you're not in a module it returns /dev/null on linux. I don't suppose this is platform independent? On Mon, 2019-12-09 at 06:52 +, Paul Jolly wrote: > go env GOMOD - gives the path to the go.mod in use in module mode, > and is > empty otherwise (i.e. GOPATH mode) > > On Mon, 9

Re: [go-nuts] querying whether the go command would run in module mode

2019-12-08 Thread Paul Jolly
go env GOMOD - gives the path to the go.mod in use in module mode, and is empty otherwise (i.e. GOPATH mode) On Mon, 9 Dec 2019, 00:25 Dan Kortschak, wrote: > Is there a way to query whether an invocation of the go command would > be running in module mode? > > thanks > Dan > > -- > You

[go-nuts] querying whether the go command would run in module mode

2019-12-08 Thread Dan Kortschak
Is there a way to query whether an invocation of the go command would be running in module mode? thanks Dan -- 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