From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: Packaging gx (for IPFS): Need to update default Go to 1.11? Date: Tue, 6 Nov 2018 14:57:12 -0500 Message-ID: <20181106195712.GB6749@jasmine.lan> References: <87k1m7y3md.fsf@ambrevar.xyz> <20181024135512.GA3804@jasmine.lan> <87d0rzxx15.fsf@ambrevar.xyz> <20181024141435.GA5988@jasmine.lan> <87efbyberv.fsf@ambrevar.xyz> <87d0ribeg2.fsf@ambrevar.xyz> <878t26b0i1.fsf@ambrevar.xyz> <20181106173116.GA3232@jasmine.lan> <87k1lqyuta.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CUfgB8w4ZwR/yMy5" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK7cu-0003NL-Or for guix-devel@gnu.org; Tue, 06 Nov 2018 15:07:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gK7Tu-00062x-6J for guix-devel@gnu.org; Tue, 06 Nov 2018 14:57:54 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:50087) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gK7Tp-00056p-QB for guix-devel@gnu.org; Tue, 06 Nov 2018 14:57:44 -0500 Content-Disposition: inline In-Reply-To: <87k1lqyuta.fsf@ambrevar.xyz> 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: Pierre Neidhardt Cc: Guix-devel --CUfgB8w4ZwR/yMy5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 06, 2018 at 06:33:53PM +0100, Pierre Neidhardt wrote: > > If most of the Go packages are ready for Go 1.11, we could make it the > > dfeault and then use Go 1.9 for the packages that are lagging behind. Or > > vice versa. >=20 > How do you do that? The default Go is defined in ((guix build-system go) default-go). Updates can be tested with this diff: diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm index cf9116327..80894677f 100644 --- a/guix/build-system/go.scm +++ b/guix/build-system/go.scm @@ -44,7 +44,7 @@ (define (default-go) ;; Lazily resolve the binding to avoid a circular dependency. (let ((go (resolve-interface '(gnu packages golang)))) - (module-ref go 'go))) + (module-ref go 'go-1.11))) =20 (define* (lower name #:key source inputs native-inputs outputs system target And individual packages can be made to use non-default Go compilers with the #:go key, like this: diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index 2fb87251f..4c8c83d84 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -171,6 +171,7 @@ tunneling, and so on.") (arguments `(#:import-path "gitlab.com/davidjpeacock/kurly" #:install-source? #f + #:go ,go-1.11 #:phases (modify-phases %standard-phases (add-after 'install 'install-documentation --CUfgB8w4ZwR/yMy5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlvh8hgACgkQJkb6MLrK fwhwBw/+MGvM01+WRJYI27tkFE8CrKsalL7rhhw3hzSZrOqpQ5LltRWWL0be+f9J eg8zeEYC9hLCELsOkIxp2ekqvSjlpKMMn9y18+BcS7YmyXv4fL1y7wQmGePEcSZy 6RFa8DjCSCG/bpFB+1x//aG8uG6iSLx/Uncgszaf3dt6oFMkVdkjMEOwke8QbcoK QhzLQ8mIFVfZ2E7UkCtW/BSJc0PuFJmhVC1ciGdPGtugB0jfiWxV9MTvdivkS4mV IPnWWoXVq553U6O7uh4qwanGdUfbmsD2wgPdWZiIAaKfMQC4V7WV9dxHELh9XgzA 2s6KUClLD1p7256dm1yePB8iwTne9MOM0wCnSSUof94ftRvZyHn/yQl84o2vImcL l7UbfoxoPSvghvBqwbS2p/cWRkZZsyWjk/t+60go44XRKY7TcCMGey42N73R5vmb aUEFC6P5Ay9YDAFvvReDBODKJ87UGS+bIQQN1FYBwmHXkz9yzZ9r363W/A6IhY/b KR7MvMauEh6bCVtTffAHfeclapPjc7DxeoeYyAeWSUXBSmbKORmH1d+Htnd7uTlL wg8UH7Bd/5kZXz8Imf4ZSjQW0fGBROuPMtcvwBUzZOL7l0/zRLzH3A497Qz4A+w8 8yh6I3uXgjA6DpUI5t+83lR9UkwvbwxBzudoc/7+LTOMvIrPGic= =uIgw -----END PGP SIGNATURE----- --CUfgB8w4ZwR/yMy5--