Re: [go-nuts] Re: module confusion

2020-08-17 Thread 'K Richard Pixley' via golang-nuts
On 8/17/20 08:41, fge...@gmail.com wrote: On 8/17/20, 'K Richard Pixley' via golang-nuts wrote: On 8/15/20 00:43, fge...@gmail.com wrote: On 8/15/20, Marvin Renich wrote: * Volker Dobler [200814 14:53]: On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote: Isn't this the

Re: [go-nuts] Re: module confusion

2020-08-17 Thread fgergo
On 8/17/20, 'K Richard Pixley' via golang-nuts wrote: > On 8/15/20 00:43, fge...@gmail.com wrote: >> On 8/15/20, Marvin Renich wrote: >>> * Volker Dobler [200814 14:53]: On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote: > Isn't this the default location? I just

Re: [go-nuts] Re: module confusion

2020-08-17 Thread 'K Richard Pixley' via golang-nuts
On 8/15/20 00:43, fge...@gmail.com wrote: On 8/15/20, Marvin Renich wrote: * Volker Dobler [200814 14:53]: On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote: Isn't this the default location? I just untarred the distribution... No. There is a reason

Re: [go-nuts] Re: module confusion

2020-08-16 Thread fgergo
On Sun, Aug 16, 2020, 04:42 Marvin Renich wrote: > * fge...@gmail.com [200815 03:44]: > > On 8/15/20, Marvin Renich wrote: > > > * Volker Dobler [200814 14:53]: > > >> On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote: > > >> > Isn't this the default location? I just untarred

Re: [go-nuts] Re: module confusion

2020-08-15 Thread Marvin Renich
* fge...@gmail.com [200815 03:44]: > On 8/15/20, Marvin Renich wrote: > > * Volker Dobler [200814 14:53]: > >> On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote: > >> > Isn't this the default location? I just untarred the distribution... > >> > >> No. There is a reason

Re: [go-nuts] Re: module confusion

2020-08-15 Thread fgergo
On 8/15/20, Marvin Renich wrote: > * Volker Dobler [200814 14:53]: >> On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote: >> > Isn't this the default location? I just untarred the distribution... >> >> No. There is a reason https://golang.org/doc/install#install >> states to do

Re: [go-nuts] Re: module confusion

2020-08-14 Thread Marvin Renich
* Volker Dobler [200814 14:53]: > On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote: > > Isn't this the default location? I just untarred the distribution... > > No. There is a reason https://golang.org/doc/install#install > states to do tar -C /usr/local -xzf

Re: [go-nuts] Re: module confusion

2020-08-14 Thread 'K Richard Pixley' via golang-nuts
On 8/14/20 11:54, 'Carla Pfaff' via golang-nuts wrote: People and installers usually install Go in /usr/local/go on Unix-like systems. ~/go is the default GOPATH if not set, so ~/go/bin is where binaries installed via "go get" / "go install" land. But the Go distribution itself must not be

Re: [go-nuts] Re: module confusion

2020-08-14 Thread 'Carla Pfaff' via golang-nuts
People and installers usually install Go in /usr/local/go on Unix-like systems. ~/go is the default GOPATH if not set, so ~/go/bin is where binaries installed via "go get" / "go install" land. But the Go distribution itself must not be under GOPATH. -- You received this message because you

Re: [go-nuts] Re: module confusion

2020-08-14 Thread Volker Dobler
On Friday, 14 August 2020 20:39:37 UTC+2, K Richard Pixley wrote: > > Isn't this the default location? I just untarred the distribution... > No. There is a reason https://golang.org/doc/install#install states to do tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz V. -- You received this

Re: [go-nuts] Re: module confusion

2020-08-14 Thread 'K Richard Pixley' via golang-nuts
On 8/14/20 11:27, 'Carla Pfaff' via golang-nuts wrote: This has nothing to do with modules. You're still using the old GOPATH mode, because you're not in a directory with a go.mod file. GOPATH defaults to $HOME/go when it's not set (since 1.8), but that's where you chose to put your Go

[go-nuts] Re: module confusion

2020-08-14 Thread 'Carla Pfaff' via golang-nuts
This has nothing to do with modules. You're still using the old GOPATH mode, because you're not in a directory with a go.mod file. GOPATH defaults to $HOME/go when it's not set (since 1.8), but that's where you chose to put your Go installation. This is not allowed. Either install Go to a