From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uEcvNV+XW2PkdgEAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 10:48:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6C4jNF+XW2NvNQEAG6o9tA (envelope-from ) for ; Fri, 28 Oct 2022 10:48:31 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 75455E59B for ; Fri, 28 Oct 2022 10:48:31 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooL29-0000UW-9K; Fri, 28 Oct 2022 04:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooL23-0000SG-2s for bug-guix@gnu.org; Fri, 28 Oct 2022 04:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooL22-00029h-IZ for bug-guix@gnu.org; Fri, 28 Oct 2022 04:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ooL22-00026t-Dn for bug-guix@gnu.org; Fri, 28 Oct 2022 04:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#25752: go incremental builds broken Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Oct 2022 08:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25752 X-GNU-PR-Package: guix X-GNU-PR-Keywords: moreinfo To: Maxime Devos , Leo Famulari Cc: 25752@debbugs.gnu.org, Hank Donnay , Efraim Flashner Received: via spool by 25752-submit@debbugs.gnu.org id=B25752.16669468627984 (code B ref 25752); Fri, 28 Oct 2022 08:48:02 +0000 Received: (at 25752) by debbugs.gnu.org; 28 Oct 2022 08:47:42 +0000 Received: from localhost ([127.0.0.1]:60349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooL1h-00024b-Ro for submit@debbugs.gnu.org; Fri, 28 Oct 2022 04:47:42 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:52997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooL1d-00023I-Ua for 25752@debbugs.gnu.org; Fri, 28 Oct 2022 04:47:38 -0400 Received: by mail-wm1-f54.google.com with SMTP id l32so2625766wms.2 for <25752@debbugs.gnu.org>; Fri, 28 Oct 2022 01:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=nTGLvOvMknu7jNus+OOR1p0N7qi9RU9iu6i8OznT960=; b=XPNCJKGLQrAI4ULhhbmN8MaNsuIgzZe2ZEFEqJ2S7KWSNG/cbiqEchQW5hiTZLjC6D 9bkCVODWt/5aE8au/ilB02x7Xt5LHlpFuuNdgdROyXNsEBxwXqEcThcwi8IlexZPFsKh CE55XuvYhPe9AHwTD2IPkgcPaKf25nDvwZmjYjMa/uL9qzGRLqkgFw3+2nq8nCN1I05M 3LgxNMb1fW/gVrGv0rSYsca4uipUVf8ZMciPgKU6EPbAuPtMgw4RQgakaz8/Sw5JTO++ wrL6V/ogp5chqPl/hwDklH+x9JzygZz4v0j88Q7QGeg7OpT5xDtbI+Pd9L40MYhKPEtC E34w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nTGLvOvMknu7jNus+OOR1p0N7qi9RU9iu6i8OznT960=; b=jPLR5CJ4dDDvz4aHYQ2IxWb6B49HrF5BY+DujducFXmo/zkMzDgq7AEsxM8QpzYKmg XjnGmSdJyqcTedlq27M2XJcsUBvutRg1km1Fzg45ZRhPwPxRCbY/nNwUR6WPHk1gAjXo OpXtB1iVAGusq66elEavAVmrSzskDxNoRBEI4SMK22wenPBbDaDGGJYxk84bPvI0lMuv en2YTuyCgAGgAvptkV/MLhNg6p7kaBjV1fP+/M5/d7dWVlNLt0rDzatGz99UE8uoifGV Zme1D0Zig2qS4f7eGJ5/mTGfhDMkTWiQv1WUksgJHfS0h1CsC0fRZUcUJb79tYfGDM5a XqwQ== X-Gm-Message-State: ACrzQf008zxBnmhgX2VmZVhkPCuNsEowDolcG3KFqLqKsBqHs/5DKKxc IzbdczEH9Cng2SBjBK8pLOTsVQurfwk= X-Google-Smtp-Source: AMsMyM570Ml93GdS0MQTenmhmO9I+UqtE3YbzvD86pr1PQhODrdC4VJYVvh1ROvE8F/D9MwWWxxifw== X-Received: by 2002:a1c:2507:0:b0:3b3:3681:f774 with SMTP id l7-20020a1c2507000000b003b33681f774mr8825225wml.134.1666946852394; Fri, 28 Oct 2022 01:47:32 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id n4-20020a056000170400b002302dc43d77sm3326284wrc.115.2022.10.28.01.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 01:47:32 -0700 (PDT) From: zimoun In-Reply-To: <2fd2b8b4-0c0c-6689-0ca3-316ad12acb80@telenet.be> References: <20170225155814.GB3227@jasmine> <86mtyavq9d.fsf@gmail.com> <86zgsftp3c.fsf_-_@gmail.com> <86h6zqb9ku.fsf@gmail.com> <2fd2b8b4-0c0c-6689-0ca3-316ad12acb80@telenet.be> Date: Fri, 28 Oct 2022 10:22:38 +0200 Message-ID: <86tu3o73xt.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "bug-Guix" Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666946911; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=nTGLvOvMknu7jNus+OOR1p0N7qi9RU9iu6i8OznT960=; b=NFOey2LgRo90c06vahF+uYMMrBlCeFDimQPlrBWa9LbikNwQkaLl50eEWdGx6l/pKzHpFG HuamdDqlu8mWDoPSVacl8D05ypfG8JpSIz+vnw+KQ5O5WFjH4WIBDtHAtPFgcO/3shfYzA UKGX8x6+f6DDFQdzErK9uhlQgIluu67eZLOKTuiHOvCzOdC6yoLO/NqmtHkwBiY5T+/h68 /+o0vvHFPWcmaCLFGTjtin7afhycbcVxtlewYJ4vkFoZ4LCFdIhwdhkeVFy6FrsN1VL2tV 7jkQepQF0KkcN0aUKPZf+4RMRfci0vGaJjhvZ3YghDmQR+ia30OBaS2TxmHJdw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666946911; a=rsa-sha256; cv=none; b=NYsGKLy7KthF6tHZt7yUxMSXf31SKB6wR5eT6bnZVe7bB193bKabbmQcFb/amYUg1ETc3H gxSyyNTBrM/CX2tBT7kJLsZTMsbNYoVkkBohvfXy+EC5lteNNTILfGoFfMY/8n/5/ts3UN m98iARQJUnPMm23hDmoodR7+CLD0W7AHAp8v6LfWIR1dh+kyqVYT1fxPnUScS+yIILsmKV LdRe+6MiYIdmvJxfRjkAzbfclWHF9zz3JuLWq9LQZ7Q9ZHhnRyoW2LAW6yCnZzxzuISN4Z NeM3BHJOv/5d7oxu0PDu2/ilUc3X3L4ebfCmmNpPWNPwo3sgO7niqsJiK4cYYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=XPNCJKGL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=XPNCJKGL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 75455E59B X-Spam-Score: 5.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: +fF28OKAH7NN Hi, On Thu, 27 Oct 2022 at 12:21, Maxime Devos wrote: > A reproducer was given in > : > > guix environment --ad-hoc go -- bash -c 'export t=$(mktemp -d); cd > $t && export GOPATH=$(pwd) GOBIN=$(pwd)/bin && go install cmd/go; cd > && rm -rf $t' --8<---------------cut here---------------start------------->8--- $ guix shell -C go bash coreutils -- bash -c 'export t=$(mktemp -d); cd $t && export GOPATH=$(pwd) GOBIN=$(pwd)/bin && go install cmd/go; cd && echo $t' [...] # runtime/cgo cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in $PATH /tmp/tmp.srzPbcMLCc $ guix shell -C go bash coreutils gcc-toolchain -- bash -c 'export t=$(mktemp -d); cd $t && export GOPATH=$(pwd) GOBIN=$(pwd)/bin && go install cmd/go; cd && echo $t' [...] go install cmd/go: copying /tmp/go-build1675975230/b001/exe/a.out: open /gnu/store/82adn4rx1h5fc7zms5g0ymwr8dk060nh-go-1.19.1/lib/go/bin/go: read-only file system /tmp/tmp.qOfxzeZDxH --8<---------------cut here---------------end--------------->8--- Well, as I am not a Go user, what is the expected result of the command? Efraim commented: I actually spent a bit of time on this today/yesterday. I modified the go-build-system to copy the pkg and src folders from build to build (instead of just the src folders) and the pkg folders were ignored. Upstream documentation isn't clear about when the pkg folder is used and when it is ignored. Cheers, simon