From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ICz3OWVbvmA/LAAAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 19:46:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aFNLNWVbvmDRWAAA1q6Kng (envelope-from ) for ; Mon, 07 Jun 2021 17:46:13 +0000 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 46B6D27B08 for ; Mon, 7 Jun 2021 19:46:13 +0200 (CEST) Received: from localhost ([::1]:51412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqJKG-0002a0-0t for larch@yhetil.org; Mon, 07 Jun 2021 13:46:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqIuw-0005wR-Bf for guix-patches@gnu.org; Mon, 07 Jun 2021 13:20:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqIuw-0008WB-1L for guix-patches@gnu.org; Mon, 07 Jun 2021 13:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqIuv-0007nC-SN for guix-patches@gnu.org; Mon, 07 Jun 2021 13:20:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47539] Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Jun 2021 17:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47539 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen Cc: 47539@debbugs.gnu.org, Leo Prikler Received: via spool by 47539-submit@debbugs.gnu.org id=B47539.162308635829897 (code B ref 47539); Mon, 07 Jun 2021 17:20:01 +0000 Received: (at 47539) by debbugs.gnu.org; 7 Jun 2021 17:19:18 +0000 Received: from localhost ([127.0.0.1]:56603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqIuE-0007m9-Ea for submit@debbugs.gnu.org; Mon, 07 Jun 2021 13:19:18 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:47741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqIuC-0007lw-U7 for 47539@debbugs.gnu.org; Mon, 07 Jun 2021 13:19:17 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id BDB491BB5; Mon, 7 Jun 2021 13:19:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 07 Jun 2021 13:19:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=Fv9JunLrjFDZwOjOMUL8vkt98k4owP+iZ1D+KxAJa4E=; b=CPLkl3pOpuO2 8CcUWJvmg9ginJZWCLslZG8h1SsL+i46trfiE8nogOrDLMb+Ts/X7nI3pkYNoGL6 7z1clErHXNPaM7KowiTjyZtWMapgn+JAuCAz6JKqm/iebMSnnBDREFVC46cmB8v9 /u8UrTVkb456rO2g+sBkYHMEQtEIWc8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=Fv9JunLrjFDZwOjOMUL8vkt98k4owP+iZ1D+KxAJa 4E=; b=FlmRi32BtCnU6MLWtShXeKmS3yaPWu6zT/gg4CSmcZnyZVoj06xGNTviB r/utP4sUh4We6dgxTGcRRMzfBouV9MA/ktFEyLMmWk0B5dtXPQARCWyqs1pk9PNF BvqGHOVSMFvXd6qlHZ0+/xaAbNCgqhr1yW3kPIHZY2ETJundlzJElx9OUZBl8hjI lSo2Sv4Gxkl3EEiHEivfbHOugxnNkxBQUvBHc663VSZdzkBKGG68bHxhCqXvV6j6 987Bigep/w6ILZMDwhbdBCQ+23MZvz0ylLbbeJO1haHr/je1t/dXD1lzs+feMbEh zLLfejHEVuRQcxsobLyzWyY8zUikg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedtjedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggugfgjsehtqhertddttdejnecuhfhrohhmpefnvgho ucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrg htthgvrhhnpeefjeevgfeujeefleekhfeitdejhfevvdfgkeekfedutdefjedvhfefledt feegudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Jun 2021 13:19:09 -0400 (EDT) Date: Mon, 7 Jun 2021 13:19:07 -0400 From: Leo Famulari Message-ID: References: <87y2dd8r18.fsf@yoctocell.xyz> <87lf9d8l43.fsf@yoctocell.xyz> <87mts486ln.fsf@yoctocell.xyz> <87pmwxu8z5.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <87pmwxu8z5.fsf@yoctocell.xyz> 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623087973; 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: content-transfer-encoding:content-transfer-encoding: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=Fv9JunLrjFDZwOjOMUL8vkt98k4owP+iZ1D+KxAJa4E=; b=HdpDeUf9UbolCHTXPwZnqe97j7BUmDgr0PwgMGA94lMqwo0lGGdHB/j+d8vbaTa0tKFDGC YQAPaPYh3FX21a5UGO6Mt6sp3pl1ZBBNSipErLdnMQr9ziGuhCIdAE8o25q5ebV8Y4nD9Y 6P7KYspipFc36gEhHdbIp33LhlFCDZ/hZgHpYutR0UL02TmTki8aapJX3gd20x9wNoEXK0 5Ky+gAPgT+A0pF2Wn5NJ8uNA7QVvr1EvDxzfoxWXtIxxLHWGBOdVHt3wnCgneTEMr0zoGY DRWIGDY3wPOdvtifwyC9F06kngPOFXvX8YYkNd7pe4kbYADNnTZ3ZPUmFByPQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623087973; a=rsa-sha256; cv=none; b=sDel9kcA4J8upb3q6fmNKgEtyDYHDuWxbBOpJjJ861glYg0qQ5uPA0H5GHVJmCQHna0DPi afOmdD0fF49oE8BNNhD/lkfoslvB5Yn96LQQTv3wj6ce/tBxvjv4fF9MirRkScs8vbeLMe B3Yz5nAa58gf6lgHh2rtEfnAoiA2FSbCvxoIcKJxO/uUc+YnWU5UDoMkzENJTHyp4W3wn8 GL2ILpkmPKntK13IUX0y8a4HI/mEAVMjmw84Su52neLne1bJ2MDZujv5uzGPcFF+zIEDtK 7hS3PcRlUGI3LhB3+mjD260sduda5XNXJ/CcvSU/bswuN5QYeTuYcLLAAzthVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=CPLkl3pO; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=FlmRi32B; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=CPLkl3pO; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=FlmRi32B; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 46B6D27B08 X-Spam-Score: -0.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: QethGnUt1bVE On Mon, Jun 07, 2021 at 02:58:54PM +0200, Xinglu Chen wrote: > So kinda like what Cargo does? Go doesn=E2=80=99t seem to have the conce= pt of > shared libraries, I guess? Apparently it has some concept of them, but it seems that it does static compilation by default. This is touted as one of the strengths of Go: it creates fully independent run-anywhere binaries. > So if A dependes on B which depends on C, and I want to build A, then C > has to be a =E2=80=98propagated-input=E2=80=99 for B? Did I get that rig= ht? Yes, for our go-build-system. > But if I just want to build B, should C still be a =E2=80=98propagated-in= put=E2=80=99 > for B? Yes, unless B is only an end-user executable, such as Syncthing. In that case it doesn't matter if you use inputs or propagated-inputs. > Right, but shouldn=E2=80=99t it be enough to just look at the content of = the > go.mod file, won=E2=80=99t it list all the dependencies of the package? Yes, that should work too! But the module imports are the ultimate "source of truth" in terms of what is used. Sometimes you will find a Go program that has extraneous things in go.mod. They are listed in go.mod but not actually imported anywhere, and thus not used. Also, I started learning about Go before Go modules were introduced, so my admittedly weak knowledge is now even weaker. I only learned about Go in order to do Guix packaging. If it sounds like I am wrong about something, I probably am :)