From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UBXsHNTzwGHTHQEAgWs5BA (envelope-from ) for ; Mon, 20 Dec 2021 22:21:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sFKPGNTzwGFJLwAA1q6Kng (envelope-from ) for ; Mon, 20 Dec 2021 21:21:24 +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 2622828B18 for ; Mon, 20 Dec 2021 22:21:24 +0100 (CET) Received: from localhost ([::1]:46848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzQ5x-0000hK-O6 for larch@yhetil.org; Mon, 20 Dec 2021 16:21:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzPzB-0001wE-ND for guix-devel@gnu.org; Mon, 20 Dec 2021 16:14:21 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]:54229) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzPz6-0006ui-Fz for guix-devel@gnu.org; Mon, 20 Dec 2021 16:14:21 -0500 Date: Mon, 20 Dec 2021 21:14:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1640034853; bh=97AGcFCbuJztI7Ai//KXQr4+tSmrJbCeysrxPrTa/48=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc; b=Xq7LqykeNhVU+kIoJajvBJZwZDi7IpidfCwHTWDVFis34HsoRtnsNJ1EmXDQNvPIw DFsjq/SjoOjJom22C23qYy44GZHGK+eUaJBDyk06muyUaK9108ymcATq7te30pE/vl V61pS5JLVMUtYA3zzKk0oH3M0GjhkQrzGwHju0NpMWFaCd8yYKkNGg8VsTN7LTpuuj 5I9aeD5dR/CM9dOvYP3i+WOEgBn0NJXrZ1gaABo3LUhE9AWG0C7AuxhuCVuNZ9vApu JTfxuq85cBZkYeVr2rfCiVg74WDQuA6eX8aRsQimqife2Rgh0YK0N1Sx+HY8kpw7A9 ai/Jftt53BHwg== To: "guix-devel@gnu.org" From: Attila Lendvai Subject: importers and input package lookup Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=attila@lendvai.name; helo=mail-4323.proton.ch 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 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: , Reply-To: Attila Lendvai Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640035284; h=from:from:sender:sender:reply-to: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=97AGcFCbuJztI7Ai//KXQr4+tSmrJbCeysrxPrTa/48=; b=q0Gz7DOIRSSiy9kJhfhuJ02sj5S8ZLDAP0eD7OCDP04cuv+qf6Dz9pyDLYhsu7bb8K94K+ f+YMny+dS2DjQinR+sh59WcMP2zGDEofs9CVr/gkXcgVWMaZdI+T4cHZrbVvaTHCSygTKJ SMZpJUYPizItwOOWxltG9dYenvPFxFkFtvqNepDkErGY+E6KXj3f5N3yyFkKUR0n7soCgL K/doaw0pHj2bEmBSBV7Cp+W1zpsJa07ChvAdJWyRIuAnHsP37wEDmgYLaXfQwZEDZ1QdHm u6qcUNoZQ0Ws83l9ACBE2ZSA6S3yXWBm6w76Rtlf9P8eOXVJN+5J797a4p3Tyw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640035284; a=rsa-sha256; cv=none; b=aomZ2xMHUhWVjmuH9ez9HEBwV2DaU0twUHYSYqe1IE2/sY+7Yneu+tP3GquEgg6e1iTpcR Uq9y3f7LxsDC8q12++OZYbIGQXvdqqSHufa3W6lbbfZNLJswAxAMGgdDdXYzNe3QEDCmJC B23HsjWes722KoTnoSJVFY1WJ+tAmpg2t/gL9hwZhrjH6im4XEvQmdn+xNHxv0YdyjZP67 RDqlMIkufZSbC7jUdjtc7JHnSycZhO7VDWBQ0VkDDwllOEK94CT+tr9amvtxT3dbeLDVOE i7k0I6lM0mP7JjzrGET7b1dpb7bVHgmqrbetdVuZJcBDJDzh1Iyqms6pj49cKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=Xq7Lqyke; dmarc=none; 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-Migadu-Spam-Score: -2.22 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=Xq7Lqyke; dmarc=none; 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-Migadu-Queue-Id: 2622828B18 X-Spam-Score: -2.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: mxAnc7NrnP36 dear Guixers, there are two, independent namespaces: 1) the scheme one, and 2) the guix package repository. when i work on an importer (golang), it skips the packages that are already= available in 2), but then it has no clue under what variable name they are= stored in 1), and in which scheme module. should the dependency lists in the package forms be emitted as (specificati= on->package "pkgname@0.1.0") forms? in the current codebase this emission is done in the shared guix/import/uti= ls.scm, in package-names->package-inputs. if i change this, it'll affect ev= ery other importer (BTW, i have converted it to use the new format). is specification->package fast enough that it all doesn't matter? a bit of a tangent here, and a higher-level perspective, but... shouldn't t= he package definition DSL have support for this? then most package descript= ions could be using package specifications instead of scheme variables, and= 1) could be phased out. or would that be more error prone? maybe with a to= ol that warns for the equivalent of undefined variable warnings? background: the reason i'm facing this is that i'm using the machinery in an idiosyncra= tic way: i want to have an isolated module where a --recursive --pin-versio= ns of the entire transitive closure of a project is captured. when some pac= kage/version is available already in guix, the importer skips it, but then = refers to it through a missing variable reference. and if i want to have tw= o of such golang packages (Swarm's bee, and geth) that share many of the de= pendencies/versions... i know the arguments why it's considered a bad idea from the perspective of= Guix, but then miscompiling the ethereum client can lead to losing money. - attila PGP:=C2=A05D5F 45C7 DFCD 0A39