From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YF8kKzHRL2E6PQEAgWs5BA (envelope-from ) for ; Wed, 01 Sep 2021 21:14:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kOrlJjHRL2F7WQAA1q6Kng (envelope-from ) for ; Wed, 01 Sep 2021 19:14:57 +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 3E3B818940 for ; Wed, 1 Sep 2021 21:14:57 +0200 (CEST) Received: from localhost ([::1]:35372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLVhH-0000Hf-6l for larch@yhetil.org; Wed, 01 Sep 2021 15:14:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLVh7-0000HI-Of for guix-devel@gnu.org; Wed, 01 Sep 2021 15:14:45 -0400 Received: from out1.migadu.com ([91.121.223.63]:26797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLVh5-0007DK-3L for guix-devel@gnu.org; Wed, 01 Sep 2021 15:14:45 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1630523679; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=M7qubZjQ5rhqMS+qtHb4lM7/fbrowZfTwiEx035iyZ0=; b=L/gBbaxtkoT12mdGqqoDGrbWLfava3qAOrHRb2HwpSoGGmBxFIk2F/6bzkawMO0IAHLEj2 Dre3b7POHbRb6Ra6qBtqeeMU5xRtzTsa9ZQ+sdA+85BZT8+jbrAoThykNpU5oGMk5vJlx8 vnkp9/cNYqajr4xQ56CRFWmjzmDQFWo= From: Sarah Morgensen To: Maxime Devos Subject: Re: packaging go-ethereum, and ultimately bee (of ethswarm.org) Date: Wed, 01 Sep 2021 12:14:35 -0700 In-Reply-To: Maxime Devos's message of "Wed, 01 Sep 2021 18:17:12 +0200" Message-ID: <86y28gyup0.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: iskarian@mgsn.dev Received-SPF: pass client-ip=91.121.223.63; envelope-from=iskarian@mgsn.dev; helo=out1.migadu.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_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "guix-devel@gnu.org" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630523697; 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:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=M7qubZjQ5rhqMS+qtHb4lM7/fbrowZfTwiEx035iyZ0=; b=JJ23xG/210xh4R0Q9d+RrUiFJFUMU2ej9URGsaPivPeme0ZsHW5WesBXG9ozZPwV3oQbBp mvnA/qR58SojsBttJCkIT2faJYFE1MyaYBQb3Ccwne4ZM41uHKOz+SS4YIEfZBFOT5L2gZ 5n2UOdDeM/Cqzx0fotj/yaUklLx1tOqPU73zTTNWJ0cHinXzIHkZSZkYOsDnt1oCgJhxgV V4BpQZUowjLnh8SMgIcT2AKPOqk230x2vP0HXRlO56F6MlTD88OkuCoYR5CaBYgQ1W7BgK V686C7CngZCkQKov8LNYrOaj4vzpldHztfLiGHKiz3gDJNWPBSGTiPKSUhAM8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630523697; a=rsa-sha256; cv=none; b=SiAcAqyi/6xUOWd/uP/HVp5jBmqCAWNgT16Zz02v9KA3O6poHyPsULA8ojOqiG5moYtoih HT7fQ2nwAlsmhJrOj6b5Nx3SfPAt7C/ggS16vNrBaqevuVUe/BFtBnOear1TslIw6nqtyl G4POfw80yugRu3kG9hzgmu3xPyxXSnCY5TPwCTWnIyTk4Zh8O3c64m66r8RGbPwmGAIyHQ VHWDxB9A+aKBTyCUM/4dy3NS2A9Pc4anyxAimT/XxkdNPQHyy3LfaPNgA+1S+957ZQU2Xb GHHNkmArLwdtbVI/tlrhgfJ4Dps5PpJGsDSPPK/q3sYx+EhKyWKqQbiPchmduA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b="L/gBbaxt"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b="L/gBbaxt"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 3E3B818940 X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: cfihQxtuDr9N Hi, Maxime Devos writes: >> > have uses outside go-ethereum, so they can be re-used as dependencies of >> > new go packages, so over time, having to define many new packages when importing >> > a go application should become less and less of a problem. >> > >> > (About version pinning: I'm ignoring version incompatibilities here. I don't know >> > how much of a problem that is in practice ...) >> >> i'm not a go expert at all, but i think it's a rather frequent >> situation in go land to move a dependency one git commit ahead, only >> to pick up a bugfix that has just been pushed into its repo. > > ... unless you meant this here? But this seems to imply that version > incompatibilities typically don't happen (otherwise just picking up > a bugfix with a single commit doesn't seem plausible), so we can > typically just use the latest version of the go module in guix, no? A clarification: a canonical Go module version is supposed to follow semantic versioning guidelines [0], so anything except a major version bump is supposed to be backwards-compatible. This is further supported by major version suffixes [1], which requires that "[s]tarting with major version 2, module paths must have a major version suffix like /v2 that maches the major version. For example, if a module has the path example.com/mod at v1.0.0, it must have the path example.com/mod/v2 at version v2.0.0." Because each Guix package only represents one module path, and that module path is used in the name of the package, we *should* be able to update to (and use) any newer minor versions of a module with no issues. This doesn't address packages without any canonical versions, of course... [0] https://golang.org/ref/mod#versions [1] https://golang.org/ref/mod#major-version-suffixes -- Sarah