From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#32919: Golang build cache and content-based staleness in Guix Date: Wed, 3 Oct 2018 10:53:35 -0400 Message-ID: <20181003145335.GB24877@jasmine.lan> References: <87va6km333.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UHN/qo2QbUvPLonB" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7iXO-0006Ez-3S for bug-guix@gnu.org; Wed, 03 Oct 2018 10:54:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7iXK-0004D4-SM for bug-guix@gnu.org; Wed, 03 Oct 2018 10:54:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7iXK-0004Ct-NQ for bug-guix@gnu.org; Wed, 03 Oct 2018 10:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7iXK-0002A2-Dj for bug-guix@gnu.org; Wed, 03 Oct 2018 10:54:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7iX0-00069w-Lu for bug-guix@gnu.org; Wed, 03 Oct 2018 10:53:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7iWx-00046l-Fa for bug-guix@gnu.org; Wed, 03 Oct 2018 10:53:42 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:49547) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g7iWx-000460-7m for bug-guix@gnu.org; Wed, 03 Oct 2018 10:53:39 -0400 Content-Disposition: inline In-Reply-To: <87va6km333.fsf@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 32919@debbugs.gnu.org Cc: Katherine Cox-Buday --UHN/qo2QbUvPLonB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 02, 2018 at 04:49:20PM -0500, Katherine Cox-Buday wrote: > We should perhaps begin thinking about switching the Go build system to > the 1.11 series of releases. I agree. When Go 1.11 was released, Go 1.9 became unsupported upstream, so we should stop using it. The go-build-system as implemented in Guix worked great through Go 1.9. Go 1.10 changed how the Go compiler chooses whether or not to re-use compiled Go objects, using a technique they call "content-based staleness", which is basically a memoized cache, similar to Guix. [0] For us, the downside of that change is that, when building within Guix using the tools we have now, the Go compiler never re-uses compiled objects and instead rebuilds everything, every time. That is, the Go build cache is never hit. It's inefficient but nothing breaks from what I've seen. It would be great if our go-build-system could be updated to work with the new Go build cache, but in my opinion it's not a blocker. I think we will have to change it eventually, because they seem to be phasing out $GOPATH, but we are good for now. What do you think? [0] https://bugs.gnu.org/30579 https://golang.org/doc/go1.10#build --UHN/qo2QbUvPLonB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlu01+8ACgkQJkb6MLrK fwhB+xAAuns5YbQRk1tZILYXRLYnFcAv1kpEvu+BG59Kd6MQHw34GpYfykYHffKC ZWkTKk3YgjuB4W+9WzRDpgWUMAYBJgZMQ7D8qTo+tb2F+FeXa55HYIbygJ3LMWbS QE87wkWq/8NSnZlthmlxM8yrKhHNIdBDeeIRpp2y7hV3Ztv07IHWn2fEkZSg7T9n ff3CcAZQK/sK83BR2uG70ImCaUqltZXJUErL2JrMrvkDsobr0iujw3pdBVXbRZIr S+UK06XQ/BORpBAJ99IvitNRRs5fIMtU1U2xZkOk+iGCiUne0MAs4sEIZEyTW393 RuMM9o+n7u7iOQcop45sK6PxxDukuM/Xwg9iFoL8CELRbXg0kLtVhVUfUlGzoJWM rDN0ezJdSqhwUOP6ufCV4U/ZWV8i531XwW3ZDCvQW63jIIfme07FADEaSCmkTAwJ 7ERN8Ae3hbNjfHSJRnzQPSCbeJlMyMT3JnheO2Tks6PcM0gd0jgUp8TvH632Nrcd 1auvGozMIYTGewqrPnYh1G8ljErPb05gqzvybFal3mc64fgVKGpuXc3e9jvUqfXp WsXQfOeydMIXp4UED42gUQhRTEik9UfZFp76KqhC0iDA1jf0IwHT51xxPUdr/bXo Kb9fJxZQrNVA87J6q6f9acsLs4Jzxs8+Tlc+01oXFvlmoKRTpok= =xfUb -----END PGP SIGNATURE----- --UHN/qo2QbUvPLonB--