From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CMk0NiSqb2SyTQAASxT56A (envelope-from ) for ; Thu, 25 May 2023 20:34:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CKh+NSSqb2Td4wAAG6o9tA (envelope-from ) for ; Thu, 25 May 2023 20:34:12 +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 AA6B13D61B for ; Thu, 25 May 2023 20:34:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2Fmd-0000J0-Fq; Thu, 25 May 2023 14:33:55 -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 1q2Fmc-0000Io-NK for guix-devel@gnu.org; Thu, 25 May 2023 14:33:54 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2FmV-00035g-HW for guix-devel@gnu.org; Thu, 25 May 2023 14:33:54 -0400 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-30aa563abdaso300152f8f.1 for ; Thu, 25 May 2023 11:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685039626; x=1687631626; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Dvp7wt3nEUWfbYoOn1wSok26HgsXnjCV3Dvv7GZBM/I=; b=Q+c7JSRQ9WaADS4P3p0xAXM3zN4WYDu6QXG5++zH/f73dcjnHTju/HDBR3DW99TlLl Wg1zDsZFax3lVXgkQ3RL5Y4S8hutbSjrOFOIdA9J/UUOR9PqX+MZL9yDW0k2HHYQJ1v2 6kPejPuKVOW3zpTAPkETTeQdeizpKx31YTLD4QEnPSwxjO035zjJNMH2J3wWsOWJ3s3o BrAeJ1ymu8HKAK5W9VDeUAK7VUzu4aWpBci8WPZqRg9DxLfZiAB14K2RMozLoI5qGF+e iKGMrVijbhyFxkUTQtirUgM1+jUGTYt2WOUH26K+41cUVDE7SD3jP3taL4WXe4h2xbNW 4Tyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685039626; x=1687631626; h=content-transfer-encoding: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=Dvp7wt3nEUWfbYoOn1wSok26HgsXnjCV3Dvv7GZBM/I=; b=TD5EVMBq6lzpR1EXeLOIqW4JfMZsDRXlxdvJNZx5EL3E6NqJmX58UKuHiNUimydn9G MHf+UMfU0gdSgFf0dCshFHUCE5Y/vYt4TMKJnpQj/rC8RhEwRHIhR6qYfHsP9dtW9suN AxjsyEXXAuf7pR4TUpJVGE7o4ixOnRC9xVYa5yNMUeDTpr+UGaSasBxCF8e0nLM/6dso K/0FmejY9Ih3BL0QaMlXn1nZRuP4pIm80cGon4r20RzpuQW6qVBff8ZLBp9M+cm0j1ba ASGQyGs4XBwV0dDazanY2e4/1TnVj3vnIjEdzxCfz5X9K2nwqDoFMQfJk5is0EYAjArb hlEw== X-Gm-Message-State: AC+VfDxdjIYZWJDeUCmujdEJeBRRibwB6yUxUvYrj3n0W7B2wiq8ufJG YamEcEDGk0OBC6Ql8A/LXSgKjk/SjIw= X-Google-Smtp-Source: ACHHUZ7BaS+dS18B7+MRe0eOYJE6N4dfNnkOaR97CLYBtXwbrq9yBbO4+RrpQVQO8ncJo7uJ+IbpvQ== X-Received: by 2002:a05:6000:1188:b0:307:a5d1:dbb5 with SMTP id g8-20020a056000118800b00307a5d1dbb5mr4399575wrx.6.1685039625659; Thu, 25 May 2023 11:33:45 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id o7-20020a5d4a87000000b00304ae802f02sm2588625wrq.66.2023.05.25.11.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 11:33:45 -0700 (PDT) From: Simon Tournier To: Felix Lechner Cc: Guix Devel Subject: Re: Understanding a Golang importer error In-Reply-To: References: <87o7mcxrev.fsf@gmail.com> Date: Thu, 25 May 2023 16:09:58 +0200 Message-ID: <87o7m8wlhl.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685039652; a=rsa-sha256; cv=none; b=lf2zpodtOMaNCCifrSkf2edsLSe8g+noHVqJyxTigddhioF3TYJZyxS9V3vo+ctKnS6Kxw KwxcF98rJFRUoKX7jhMG2hd5Coll6+iUTP2pFg959x2e+Ma7pZx4CA6RUlH5H3WmzvwELd Lx8SNtiFNzM6K+y2EM/bJTdu3HvqIeN+Wz5dmj762Hxc2ZNt8l7sL/V3r7el6QrXY2Q47J pZQJoFKGCYCqO9enebU7d9GtGp9YPF7DPgcZREtD5YG9Z+EYSZZTU5qVHd49LZNF7RUiBZ uqKuR98WLAiV6HgKHdUCyTHLOBGUh1Zj+ylwTS3NKMW4EoegMWU4syyxoabqbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Q+c7JSRQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685039652; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Dvp7wt3nEUWfbYoOn1wSok26HgsXnjCV3Dvv7GZBM/I=; b=CNx7Tno2xl2ixdsenwo4vvk3lnTeICcmpXljUdI78poj0wp4t9kTmd4dr/Dl3nfPIVoj8U OZfLzYBvPMowak32ApwlD6ynVoQh6R+oZyoLzRDwv4dqQZ7+Rr5UBVVYTmU4MdR8H2m4l9 Y6Sq1ME9u+OCAK7IPe+uzE6++zPzM4cOR7RueNMzhY4o7zO+3j01rffPfkHidj3THLpUSn TjvNvykXeOd+bCfd2p8XN1XoR+K2pAkOgU//fZ/ZUNq9soS0GEsHemEQEgdG/dZaG9EK6u fQmwujYnAX5TzCS0Yi2Dsdc559J+gFGWaOLy5mJXOZjta54eG3HMBiuKlV/doA== X-Migadu-Spam-Score: -8.13 X-Spam-Score: -8.13 X-Migadu-Queue-Id: AA6B13D61B X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Q+c7JSRQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-TUID: kkKUDROA8uHF Hi, On mer., 24 mai 2023 at 19:29, Felix Lechner via "Development of GNU Guix a= nd the GNU System distribution." wrote: > I would find it more consistent, however, to pick a nearby version (or > the newest version) and emit that package definition, instead. Well, what does it mean =E2=80=9Cnearby=E2=80=9C? From my understanding, i= t seems better to display a warning, to be non-blocking and provide a recipe where the integrity checksum is missing. For an example, see: https://issues.guix.gnu.org/issue/63647#0-lineno61 > After all, Guix package variables do not care about versions, and > neither do we. Guix and its contributors assume more or less > throughout that nearby versions work fine. Why not here, too? I do not understand what it means. Guix package cares a lot about fixed-output, i.e. about the integrity checksum. :-) Quoting the manual: Operations such as file downloads and version-control checkouts for which the expected content hash is known in advance are modeled as fixed-output derivations. Unlike regular derivations, the outputs of a fixed-output derivation are independent of its inputs=E2=80=94e.g., a source code download produces the same result regardless of the download method and tools being used. https://guix.gnu.org/manual/devel/en/guix.html#Derivations Therefore, you need a mean to express the map between the Guix content-addressed and the outside world working with URIs and often with version label. > We could also prompt the user of 'guix import' to select a tag. Well, I know nothing about Go. Neither about how Go packaging is working. Currently, these tags does not seems appearing in the goproxy (https://proxy.golang.org) which is the information used to construct the recipe, IIUC. > Do the versions perhaps come from the consuming go.mod files that > spell out the version requirements? Please note that, as Attila pointed, some improvements [1,2] for the Go importer are waiting for review in the patch tracker. Help is welcome. ;-) 1: https://issues.guix.gnu.org/issue/55242 2: https://issues.guix.gnu.org/issue/63631 Cheers, simon