From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: Go not setting $GOPATH by default Date: Thu, 29 Sep 2016 19:34:36 +0800 Message-ID: <878tublz1v.fsf@member.fsf.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpZbq-0002Fz-RW for guix-devel@gnu.org; Thu, 29 Sep 2016 07:34:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpZbn-0005pm-6B for guix-devel@gnu.org; Thu, 29 Sep 2016 07:34:37 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:40635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpZbm-0005pg-Vr for guix-devel@gnu.org; Thu, 29 Sep 2016 07:34:35 -0400 In-Reply-To: (swedebugia@riseup.net's message of "Wed, 28 Sep 2016 16:18:39 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: swedebugia@riseup.net Cc: guix-devel swedebugia@riseup.net writes: > Hi > > I have just installed go and it seems that it does not set a gopath by > default. > > This leads to errors when trying to use go get, e.g.: > > sdb@unknown ~$ go get github.com/syncthing/syncthing > package github.com/syncthing/syncthing: cannot download, $GOPATH not > set. For more details see: go help gopath > > I propose that we set the gopath by default to "~/go" and create that > directory by default, what do you think? I think it's a good thing for user to set GOPATH his own, knowing where the `go get' download into.