From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UDYaCufLaWf3PAAA62LTzQ:P1 (envelope-from ) for ; Mon, 23 Dec 2024 20:45:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id UDYaCufLaWf3PAAA62LTzQ (envelope-from ) for ; Mon, 23 Dec 2024 21:45:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b=LR+GMQmu; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=PBKabFoe; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734986726; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=sj1KGh6bkgEhlCy9AuK0KJsk8fA0o6UhlY9wKy7woeM=; b=eEYEdTsi97DQLDuPxDeUQnGx/MBXuGeEYIOiyjt5e9298PYFO8gI86G8mo774KsYFtEOfe hORqab0CMDbAsk4W5YrP36mcPOQfGslWtoK2JU+z28OuCRvSqeUoPIlYbDrIg6UA7iJH/U ryYD1FKFCmgF+Ei2tO8n0hay7Ejob/OB6FpTJwDNWnzDd2XWEGrf+6kPxrUAfUYhfB8F/e iGz80e37Il5r30vs35sDxtyfly581ruhxnGe349wsqL70h4XIq+l2qoAZ39PN0BzB1JnRY UN8/LLRYXfhgJVjiKiug4rkWAyQHwB3xX8cuACuv3gCrkPVB5Pxv0ESe6e67vg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b=LR+GMQmu; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=PBKabFoe; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734986726; a=rsa-sha256; cv=none; b=LyzFETGc5C05HyA2mMlGhC0L1qpWNRae55G7++rlwM9Bi6FkydqLlm0LuCJcPKxMrGTzjx jLz0a2s0OvTUBw/+if+B8OS1LnU4vFYwswrsQSBESKgSSoYA64S8LKq3qsePXkBH5benxy cIctgw45iLqPogszzNI7RnJMbV3mMOxO8pCP8P4ObmVrK28oRS/fMMIA2E5guK973w7pZf OytExNxOf+cL+A5phhM7Y+ZZtFb4kiFR5ykMluYK7k8OIgbsCe496E45PqcS5VTgBWI0OW YBH2Ro2ukx+H5e7yhSS+VDT10oBUK9Us303E871l7qjFnuwmQC3MoafgCKqPqA== 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 43655195F0 for ; Mon, 23 Dec 2024 21:45:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPpIN-0004Ma-Nw; Mon, 23 Dec 2024 15:44:55 -0500 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 1tPpIK-0004MB-Cz for help-guix@gnu.org; Mon, 23 Dec 2024 15:44:52 -0500 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPpII-0004MN-6u for help-guix@gnu.org; Mon, 23 Dec 2024 15:44:52 -0500 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.stl.internal (Postfix) with ESMTP id 66856114016B; Mon, 23 Dec 2024 15:44:47 -0500 (EST) Received: from phl-imap-08 ([10.202.2.84]) by phl-compute-10.internal (MEProxy); Mon, 23 Dec 2024 15:44:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=mesmtp; t= 1734986687; x=1735073087; bh=sj1KGh6bkgEhlCy9AuK0KJsk8fA0o6UhlY9 wKy7woeM=; b=LR+GMQmuIKwZpNaNBRHryumYHxc1L9rVVKLr/e2f3V5ai2meyR7 TS4bkUVMImtppBHnhFVd2UDL0VWUaNViO+mvKTojA7Y2elk58JL/Qk/seYnb4fwl JBl9tZJDuxWBEvU+qZRZ4g40lTb/cfRHnrLxCkcx+asnrOi+kAF52G5s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1734986687; x=1735073087; bh=s j1KGh6bkgEhlCy9AuK0KJsk8fA0o6UhlY9wKy7woeM=; b=PBKabFoeZ9+Nd2vQP VT+cGX4F6LbhWL1A8N4DTCBE8pP6KL4LLFz3yvroKTpJOiNsRP4LC4QuxPUJS5fa Wki4wPtT3G89BsQkLQKLWi+YKe5QgzBQyup8VK7TIPdOWEF2ZjTa1benf3oFNu/b lgpYCf7LKdUUzpZAKscuWDtri24bgYpogrJBekdznY+ff0Tjqsd5oUtLW2qDr7Df U+gRfml0rrJCc8EBDAZ5QwJFmnuL4FMZbCMr3OUHwAMA8YGBktTAtMA0qLIV2czW IXj4/OA1dfhdqO+XuH3Z77sLqnboKlkJbRKLuEFw4MAtplth7MfkzQT8OMicaDMH d+jyA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudduvddgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvffkjghfufgtgfesthhqredtredtjeen ucfhrhhomhepfdfnvghoucfhrghmuhhlrghrihdfuceolhgvohesfhgrmhhulhgrrhhird hnrghmvgeqnecuggftrfgrthhtvghrnhephfehhfejtdehtefhffehudejtedtgedugeev feekfeejieduledvjeegvddvgfetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvgdpnhgspghrtghp thhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohephhgvlhhpqdhguhhigi esghhnuhdrohhrghdprhgtphhtthhopehmrghrvghksehmrghrvghkphgrshhnihhkohif shhkihdrphhl X-ME-Proxy: Feedback-ID: i819c4023:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 9406518A006E; Mon, 23 Dec 2024 15:44:46 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Mon, 23 Dec 2024 15:44:26 -0500 From: "Leo Famulari" To: =?UTF-8?Q?Marek_Pa=C5=9Bnikowski?= , "znavko--- via" Message-Id: <50a690f8-6259-4efb-87d5-37365a00180e@app.fastmail.com> In-Reply-To: <6136144.lOV4Wx5bFT@ayase> References: <87y10dntl3.fsf@coquand.email> <6136144.lOV4Wx5bFT@ayase> Subject: Re: Go build system - build from local directory fails Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=202.12.124.151; envelope-from=leo@famulari.name; helo=fout-b8-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.96 X-Spam-Score: -8.96 X-Migadu-Queue-Id: 43655195F0 X-Migadu-Scanner: mx10.migadu.com X-TUID: b4/jzb/3cutK On Sun, Dec 22, 2024, at 01:12, Marek Pa=C5=9Bnikowski wrote: > This is exactly it. You always must supply the #:import-path in Go bu= ild=20 > system. > > This path is vital to the operation of the build system, as it adapts = Go build=20 > environment to Guix environment. This path matches the name of the cu= rrently=20 > built module. > > In practice, it is the string that follows the 'module' keyword in go.= mod=20 > files. > > I do not know the theory behind this coupling. There is not much theory behind it. At the time we made the go-build-system, the process of building Go pack= ages was different from how it is today. For example, Go modules had not= been invented yet. Additionally, those of us who made the go-build-system were not Go progr= ammers and did not (and still do not) have a strong understanding of how= Go software is built.=20 But, the import path was critical for building a Go codebase at that tim= e. It was (is?) the actual "name" of the software, and is generally equi= valent to the canonical URI from where the code is fetched. An unusual c= hoice but it was the choice made by the Go team. Overall, Guix's Go build system is due for a complete overhaul by people= who actually understand Go idioms.