Re: [go-nuts] Re: Home directory?

2023-04-23 Thread Amnon
Ok Jan, you are right. They do still play a part under the hood. So external modules get cached under $GOMODCACHE which is $GOPATH/pkg/mod by default and go install installs executables under $GOBIN which is $GOPATH/bin by default. But my point is that (apart from $GOBIN), this is something that

Re: [go-nuts] Re: Home directory?

2023-04-23 Thread Jan Mercl
On Sun, Apr 23, 2023 at 10:28 AM Amnon wrote: > Yes GOPATH and GOROOT have been deprecated. Both are alive and well. They are essential for the build system/go command to work as required. tl;dr: There's a default value of GOPATH so one does not have to set it. A much longer version can be obta

[go-nuts] Re: Home directory?

2023-04-23 Thread Amnon
I looked at https://go.dev/doc/tutorial/create-module it only has two mentions of, which are just suggestions regarding where to create your working directory. But it is just a suggestion, and you can choose any location which is convenient for you. Yes GOPATH and GOROOT have been deprecated.