From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WC/6N1/KR2Sh9AAASxT56A (envelope-from ) for ; Tue, 25 Apr 2023 14:41:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2D/YN1/KR2SNugAA9RJhRA (envelope-from ) for ; Tue, 25 Apr 2023 14:41:03 +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 AFDA6430DF for ; Tue, 25 Apr 2023 14:41:03 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=inria.fr header.s=dc header.b=OHcBcNsh; dmarc=pass (policy=none) header.from=inria.fr; 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=1682426463; 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=ay2a9wO/yMTXMmYYsoGi7qFCdn77T+mEghf5KSthxlQ=; b=i3C+VZ3m6dhL8k6ro4myStzPrNlTyV+ue070BW6xDMGGea38U6fukkk9X8i0AgFX1dXSRe fMdqsbDywqNyGJRWg3hqedfWKhNBd4rjeyFvtZocx4P90oV3Aj5afkbKNxKNLfyJCZQwum g7rJ/v9osHcVLavrzTHCchPbcbvYTTkng/ffnJ504FeVAuhPvKbdEBx99AI+CggaiPzpu/ K/J6SUjkCojqkg1+cciHMx0GE9Zg9yhgebxjxK3AcsLiJvJl9oSd27W5hf50FZTTxb7gta WGDyjBU85SThJU9rgB4cic1L+EBl9/V/BzDF6DXOWy5N4bVTq4bajV7sNq90Aw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=inria.fr header.s=dc header.b=OHcBcNsh; dmarc=pass (policy=none) header.from=inria.fr; 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-Seal: i=1; s=key1; d=yhetil.org; t=1682426463; a=rsa-sha256; cv=none; b=q3IptkukyU6J2dS0bbjeQWnK9ZDoOmhYtpvBomUp/w0legkLmJjo45ILrLz9GGNaVgxlQJ T7q24bPy71OOBD3Tg7V3cT9EsJwrOXTmZbQjxdXiJ+ohU0rtQcNh9EMxSMztrcyvV1i5Kz BE7DykmutCZv+0a88cU+Yq13plbZu0+W4ro3ECR9y1Cd3WaJi+JbmZVRW1LHA7VrCnp7In Wo6WLwikWUggLjC/yaSV28+RraPAyXzZIOsuZZla6aP92taWRt0tGnHBMG7W0gv5OzxckO A+yDVRzyzToefQ5TsfKV1EZO+u+eMjNMi1P3acskwqWRDTGvu0I/lAnac+hUeQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prHyC-00071V-4m; Tue, 25 Apr 2023 08:40:32 -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 1prHyA-00071C-HN for guix-devel@gnu.org; Tue, 25 Apr 2023 08:40:30 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prHy7-0007zl-BK for guix-devel@gnu.org; Tue, 25 Apr 2023 08:40:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version:content-transfer-encoding; bh=ay2a9wO/yMTXMmYYsoGi7qFCdn77T+mEghf5KSthxlQ=; b=OHcBcNshTTkCqOCsjCtfA69Arb85ppIfCVBrp6SxottAFW9ECOp5/pil E9xjNh+PA0GhtaPOL9D75zWPdq8xEu7KUwtp4HIMnPpDhLEEMZgH56Ycc rJSn49oTLoJkMbndjlzL0k3HRB+XfpuJLb0CmZSxNKHR0Vizlatsd6t+y E=; X-IronPort-AV: E=Sophos;i="5.99,225,1677538800"; d="scan'208";a="54322684" Received: from unknown (HELO ribbon) ([193.50.110.118]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2023 14:40:23 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Tournier Cc: =?utf-8?Q?Bj=C3=B6rn_H=C3=B6fling?= , guix-devel@gnu.org, Lars-Dominik Braun , Maxim Cournoyer Subject: Re: Adding content-addressed URLs to https://guix.gnu.org/sources.json References: <20230312220021.22bfff4f@tangletp> <878rfwgbng.fsf@gnu.org> <86lej8y75p.fsf@gmail.com> <87cz3t44hi.fsf_-_@inria.fr> <86pm7sb7vf.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 6 =?utf-8?Q?Flor=C3=A9al?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de l'Ancolie X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 25 Apr 2023 14:40:22 +0200 In-Reply-To: <86pm7sb7vf.fsf@gmail.com> (Simon Tournier's message of "Tue, 25 Apr 2023 11:59:00 +0200") Message-ID: <874jp416fd.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-Flow: FLOW_IN X-Migadu-Country: UNKNOWN X-Migadu-Spam-Score: -2.55 X-Spam-Score: -2.55 X-Migadu-Queue-Id: AFDA6430DF X-Migadu-Scanner: in3.migadu.com X-TUID: 4Z25romgkNyn Hi! Simon Tournier skribis: > PS: On a side note, building sources.json fails since ~1 month. > > $ guix repl -- build-package-metadata.scm /tmp/ > guix repl: package metadata will be written to '/tmp/' > Backtrace: > > [...] > > In procedure %origin-patches-real: Wrong type argument: #<= name: "ruby-sorbet-runtime-0.5.10610.20230106174520-1fa668010-checkout" ge= xp: # url: "https://github.com/s= orbet/sorbet" commit: "0.5.10610.20230106174520-1fa668010" recursive?: #f> = #= () 7fa67b7f6000>:out> "/gems/sorbet-" #) #)) gnu/packages/ruby.scm:14078:5 7fa67b701c90> guile: #f options= : (#:local-build? #t)> I believe this is fixed by 1df54ceab38873dfc0fd2ec27313d7d17c79c350. (It broke the =E2=80=98source=E2=80=99 and =E2=80=98disarchive=E2=80=99 job= sets as well.) > Somehow, it reveals 3 currently uncovered cases: computed-file appearing > as, > > 1. =E2=80=99origin=E2=80=99 in source field (ruby-sorbet-runtime) > 2. =E2=80=99inputs=E2=80=99 (racket-minimal) > 3. =E2=80=99snippet=E2=80=99 in origin in source field (chromium) I think #1 and #2 are okay: we can use any file-like object there, not just origin/package. Of course, is meant to be the best choice for =E2=80=98source=E2=80=99, and the best choice for =E2=80=98in= puts=E2=80=99. But I think it=E2=80=99s fine to occasionally resort to some other abstraction when the= se two are not adequate. Ludo=E2=80=99.