From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aN9SKYfq4GFoKAEAgWs5BA (envelope-from ) for ; Fri, 14 Jan 2022 04:14:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gNzqIYfq4GG2EQAAG6o9tA (envelope-from ) for ; Fri, 14 Jan 2022 04:14:15 +0100 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 2E7AD29614 for ; Fri, 14 Jan 2022 04:14:15 +0100 (CET) Received: from localhost ([::1]:35832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8D2c-0004XV-AS for larch@yhetil.org; Thu, 13 Jan 2022 22:14:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8D2Q-0004XM-TM for guix-patches@gnu.org; Thu, 13 Jan 2022 22:14:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42204) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8D2Q-00038o-Jb for guix-patches@gnu.org; Thu, 13 Jan 2022 22:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8D2Q-0001NX-3V for guix-patches@gnu.org; Thu, 13 Jan 2022 22:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50227] [PATCH 0/3] go-build-system and GOPATH improvements Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Jan 2022 03:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50227 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Marius Bakke Cc: Sarah Morgensen , 50227@debbugs.gnu.org Received: via spool by 50227-submit@debbugs.gnu.org id=B50227.16421300105242 (code B ref 50227); Fri, 14 Jan 2022 03:14:02 +0000 Received: (at 50227) by debbugs.gnu.org; 14 Jan 2022 03:13:30 +0000 Received: from localhost ([127.0.0.1]:35107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8D1t-0001MU-NI for submit@debbugs.gnu.org; Thu, 13 Jan 2022 22:13:29 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]:33656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8D1p-0001M8-RQ for 50227@debbugs.gnu.org; Thu, 13 Jan 2022 22:13:28 -0500 Received: by mail-qt1-f181.google.com with SMTP id h15so5120091qtx.0 for <50227@debbugs.gnu.org>; Thu, 13 Jan 2022 19:13:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=oSxFmnSR4gR2j4KwGlT2zLxzekxVlCEJ3A0rouBUHUY=; b=Ny+tWGwL1bLT0V04ap79YWavCcFBhFO2bOVSO5tbRsvD3AItrg6X0ew6oNPyY6ISnP Lf5AYQp2/br5WaR/txbGovD0IfYO9mLknytaCKawI+rQ3/yi9t4EmAzoN3S0QyqYl/jS V3b2ID3j/uigUpMva2kPgbys3lBNmanqiE66N8BJj41vTHLJp2eaQAXdRLBwWDvYvo3J RGZYTQ8D66fM0T6UcB+qZXW3JXpVERLB89w/zWL/csGvO+96OmFVEnCLeRr3GcPrdNV/ wtqnx/aEOAvYgzgkck+IBzyL7tjIV5Kso9dkzTHoNJEIi5tQpPv3+QfAj8+F6k/oXRKg SQPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=oSxFmnSR4gR2j4KwGlT2zLxzekxVlCEJ3A0rouBUHUY=; b=mC4FHlPx6kJdFOf64Vdwhhqw8XdpTfQIVo9Fd9laVUbIYokEcDkZyX1lKEPfsuUl3m X0laBCZyVezKKljvdjVt4SDSwQ/fO2BlhuH9nU4Seau2knxB21wW3FA3An/6OHx+Ty2U L46gv7Y8PnvJEHhgFEM5XykdFRUsyCTteXI42lEPZX9zn445UjImcohmnjsuEDMcprKF myVSBDI69aZ76Dr3CiuZYJzWwOCmXLID2Vx/xQopDqP02VHnsS83wqqrRHHP74+vJEzd WUVrz3T8NNGoYO4PTAFBrukoRjgbXv2B9tWkeh13TRNWrAwak6kWXRKdgs9U13nnm+Qr l06g== X-Gm-Message-State: AOAM533hV4fqsEk7PGl5aFybCk6lhnAH2gzmB7X8CD5REKUZQn+Mlrk6 aFp6GjPWZDU4S6wlQtfw6wWysOtRmy30LQ== X-Google-Smtp-Source: ABdhPJyYSDY2s+ibaXzGfXoiRWh5RHGG8TYHuaoxs33ueevNXzLY5lAOfYl//WtTJYz95SUu2EDn/Q== X-Received: by 2002:ac8:5994:: with SMTP id e20mr6231355qte.75.1642130000161; Thu, 13 Jan 2022 19:13:20 -0800 (PST) Received: from hurd (dsl-152-155.b2b2c.ca. [66.158.152.155]) by smtp.gmail.com with ESMTPSA id t21sm2291559qtc.46.2022.01.13.19.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 19:13:19 -0800 (PST) From: Maxim Cournoyer References: <86mtp248ku.fsf@mgsn.dev> <87r1edmxjk.fsf@gnu.org> Date: Thu, 13 Jan 2022 22:13:17 -0500 In-Reply-To: <87r1edmxjk.fsf@gnu.org> (Marius Bakke's message of "Sat, 28 Aug 2021 16:52:31 +0200") Message-ID: <87bl0fxb5e.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1642130055; 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=oSxFmnSR4gR2j4KwGlT2zLxzekxVlCEJ3A0rouBUHUY=; b=AukQBZDGHX6WlX1ii7nSc20q/VyKbKIUjpBlETU7g9xho5R01SUc0/nb9EDiFsKPJZRPuR TqB6trOvPFviUymwFVSrmA0C1bS7D5IkfnFiYrBm/rLV/NXr1lhzFoyeux004viLx0zfFu WWTYXqPXJ0rIQ+I4ZWzHMWK0G/lc3En8eROoL2Xug+9uj+yAYprO4wDehr7ak66+8+pok+ UqaZtHE3Ce3+oSU+dYg0QE0+/lghIbBulM6Svv2YA+CW4rgcevr4FrJeqCCyplkm+vOVRD Nkv0iGBdK5DVfnxpyWwZG693apUmKPQATx55JmjS3s1P+JpEVhwsmaHBh6OWUQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642130055; a=rsa-sha256; cv=none; b=kKozmxO4+MZ1Lj/nGmUXexlasv9Bz/SajUI34fV6KemH7GjdA0Wnj+mrZvvtHfTW5IvXh4 GBHF/Cn+Fx70UwaZXinZl9abNm1FqLSQkhawlISpJZOPmkNW5t23u1R+1sldy6Vz2rPBHn GYyywaVNB2THGfvu2uITHAaLYA471eegYtkgtXT6eDXWxxDCbSkYnnpBtWmD4LcfnCIsQ2 cwQTM9mSe/Lwj97rOB0d4F6in7peLQctYMBn6uq6m3Xtttp2wRlC5VDXYwM6wj37r9jFIE u8YOWB0CEnTdogpi4ot7tYiAQWIxrlZ9pFLs2JkQEaJ06eR2ts47zXGtxtJ+tQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Ny+tWGwL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Ny+tWGwL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2E7AD29614 X-Spam-Score: -2.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: pjj3V173AIbK Hello, [...] >> I'm not sure what a similar idiom for Guix-like hacking in module-aware >> mode would be; we'd have to set GOMODCACHE or something, but it would be >> very easy for Go to overwrite (or fail to overwrite) things without >> GOPROXY=off. Alternatively, if we make a "full" go proxy directory >> layout, we can do >> >> GOPROXY=file://path/to/gomodcache >> >> or even a search path like >> >> GOPROXY=file:///gnu/store/p1/gomodcache|file://gnu/store/p2/gomodcache >> >> though I'm not sure how well that would scale w.r.t. number of packages. >> >> Both of these GOPROXY methods have the advantage over setting GOMODCACHE >> that the user could modify GOPROXY to include the default proxy, and >> would still be able to get packages and versions not packaged by Guix. >> >> I suppose there's no reason we couldn't set both GOPATH and >> e.g. GOPROXY. > > GOPROXY seems like a great middle ground for local development. > > Given the conflicting work here, what do you think we should do? I'm > happy to scrap this PR as it was largely an exercise to learn > go-build-system, in addition to scratching a very minor itch. > > Is the reduced complexity worth it while waiting for the gomodules > rewrite, and if so, are there parts that can be merged with your work > such as using $out/share/go? > > Let me know if I can be of assistance. :-) I'm confused by the status of this series :-) Is there something to salvage, or do we scrap it, awaiting for a proper gomodules solution? Thanks! Maxim