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 ms5.migadu.com with LMTPS id UGUgIEmTe2NXqgAAbAwnHQ (envelope-from ) for ; Mon, 21 Nov 2022 16:03:37 +0100 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 YN8tH0mTe2ME0gAAG6o9tA (envelope-from ) for ; Mon, 21 Nov 2022 16:03:37 +0100 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 2595216490 for ; Mon, 21 Nov 2022 16:03:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ox8KM-0000YK-Hl; Mon, 21 Nov 2022 10:03:18 -0500 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 1ox8K7-0000Gi-Cn for guix-patches@gnu.org; Mon, 21 Nov 2022 10:03:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ox8K6-0001OF-7L for guix-patches@gnu.org; Mon, 21 Nov 2022 10:03:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ox8K5-0008F6-Pr for guix-patches@gnu.org; Mon, 21 Nov 2022 10:03:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#58660] [PATCH v2 2/3] etc: teams: Sort and itemize 'scope' field. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Nov 2022 15:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58660 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 58660@debbugs.gnu.org Received: via spool by 58660-submit@debbugs.gnu.org id=B58660.166904296331639 (code B ref 58660); Mon, 21 Nov 2022 15:03:01 +0000 Received: (at 58660) by debbugs.gnu.org; 21 Nov 2022 15:02:43 +0000 Received: from localhost ([127.0.0.1]:48446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ox8Jn-0008EE-5C for submit@debbugs.gnu.org; Mon, 21 Nov 2022 10:02:43 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:44558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ox8Jh-0008Dm-Dy for 58660@debbugs.gnu.org; Mon, 21 Nov 2022 10:02:41 -0500 Received: by mail-wr1-f50.google.com with SMTP id v1so20223915wrt.11 for <58660@debbugs.gnu.org>; Mon, 21 Nov 2022 07:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=yIokWvCkfy99rUgs/dPHGwHwC0YLk4VqAToKSLhGQP8=; b=QHoYtv5wliUdBgjf8Jnl5LGxsl1AdOyU82LZRCrJCzpfxvPn3oJTkLKz3afjqMA1Q2 XUMGZoZIybhiKTohRyuaS0WXfI7YlznNQuuHINvBgezaNvScrCidJmy9YB3ivXdOx9yP ZPliMdw6TttFNy2Tf4Y3tvGgozNZoUXbB5iggTISZAg83SOvmI6BL483IiiABNWr7FsR Azd5dHTVe85KG9w9KWTj4HNWt4MTdCrzjGqBDffoWVTd6tYNDSQntLmAItx5k+PeYGvJ Sx43edJ3UGVyYU5FlMH3Gc13tTID0WRPFbFP77vZEVii95uoEp3cPI8buJzQ/BcVZh+S LSwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=yIokWvCkfy99rUgs/dPHGwHwC0YLk4VqAToKSLhGQP8=; b=l2Y+JtX/jv1l3uFoS15f4ll4XcOcJ7uJIucF7ZHvdCEJTjqpLDkhni8HZ4SvKcXdSI 31u/m0N9yepLlEWtpjbQUbIPnizovlcNzFFNiRgBeWDuS+Oe6eILxKITtA3q0LZUJxox IhL3JqKY9CeZgcUM5n45WyBA46By6Nyw8mHJszBqHUynFDfFYyE0sOU4Oh/oi01iBnOv 2zpwDuLXv6z41Z4BJQsmuSTTa77ARDGEeRDxgtaI1cydszJmRuRTVcIigbCwxjW7sa70 wByVRBQBo+ajsIZ1MjYuBrsrGKs4OBHTKe4PkpMDmEA7r9ViF8WqrWpzjVXGwImlippV XkTQ== X-Gm-Message-State: ANoB5pkiL3QAz623lRd29f15VYIHgDn8nqKS8nLAaf+zVbMNCM5HXxwL 58xC0c8GDmDkVybTVPMnuV3/BoMK84g= X-Google-Smtp-Source: AA0mqf41TdSNl/adq5q5cfTlClCu1HVM8DluOaqTU54di7QXQlwBy4pd8gRUuFiClGx3RGoDFv1a+g== X-Received: by 2002:adf:dcd2:0:b0:241:b99c:b48 with SMTP id x18-20020adfdcd2000000b00241b99c0b48mr10959451wrm.45.1669042944855; Mon, 21 Nov 2022 07:02:24 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id p6-20020a1c5446000000b003b47e75b401sm18192976wmi.37.2022.11.21.07.02.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 07:02:23 -0800 (PST) From: zimoun In-Reply-To: <87fsegfa77.fsf@gnu.org> References: <20221117202820.2054593-1-zimon.toutoune@gmail.com> <20221117202820.2054593-2-zimon.toutoune@gmail.com> <87fsegfa77.fsf@gnu.org> Date: Mon, 21 Nov 2022 15:11:33 +0100 Message-ID: <878rk4xuqy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org 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=1669043017; 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=yIokWvCkfy99rUgs/dPHGwHwC0YLk4VqAToKSLhGQP8=; b=IBXZMbETw9TnaiPlP5GYf5QCxR4ZNiWSBo57jApr54rdZH4sV+tHq+3gCI/Nmo4c0Y1hH9 2LHR5c/LdZDnL/ZW1jmIg9geGAWylwdvhfISh9dsCvxAxpk25IA3ygDVeh3IahYpbU5XuB 6h6KiVf2SeKwdU+k9DDcJRxXv/8gM3goDXqxjAhO+dCI7Cy1Z9Wj1YIMwWidU//kabidur X7Ii8hefHszWtHV2sLXpB+lJhxPl0lBZcqa0+Xn7XmkUZtXg5HEbVZoZg4uDsG0emLSAV2 Cs8h9aSaH2l+nSaAXk2x6dA19tifx6FwGE8djzxV0Gwjvv9J9a9lUKcGblefPA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669043017; a=rsa-sha256; cv=none; b=tPxifvxKXQ6n0Hq4xyly5uRyeuJwjpMZsG8pTe5vZTFF8YbihIxkMWV4/dIolpX2XAdJ5U 9VWaK3i5q2ED7s3tb336BkS+SoxTsYlWKQf1IF/CvwxJHomrpGn85qCnD1nFNeS6rnxkbg vAoKe/lgjqqUKaQbw/Ff3/30fgg3H0BPq2wPwy+80fSZ5C72qyYYDO1Sd8m7FDk58TzYGW L3NL92NSxuQ8cYo63sqSSyWgyU5y1+wOAVbIV/wYcHlyVI6bhst7JKdQw2pCGZO3+81oGg qlDrtouXnuqzpPKx1BQk+fap0L0gHryvo8X2ng3vQSw5Z+WHrxQZ8sN5LX45+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QHoYtv5w; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QHoYtv5w; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2595216490 X-Spam-Score: 5.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: VqchqqLHOlwO Hi Mathieu, On Fri, 18 Nov 2022 at 18:23, Mathieu Othacehe wrote: > Why not: > > (scope (format #f "scope:~%~{+ ~s ~}~%" scope)) Because this does not =E2=80=9Citemize=E2=80=9D correctly. For instance, i= t outputs: --8<---------------cut here---------------start------------->8--- id: python name: Python team description: Python, Python packages, the "pypi" importer, and the python-b= uild-system. scope: + "gnu/packages/django.scm" + "gnu/packages/jupyter.scm" + # + "gnu/packages/sphinx.scm" + "gnu/packages/tryton.scm" + "guix/buil= d/pyproject-build-system.scm" + "guix/build-system/pyproject.scm" + "guix/b= uild/python-build-system.scm" + "guix/build-system/python.scm" + "guix/impo= rt/pypi.scm" + "guix/scripts/import/pypi.scm" + "tests/pypi.scm"=20 members: + Lars-Dominik Braun + jgart --8<---------------cut here---------------end--------------->8--- When what we want is: --8<---------------cut here---------------start------------->8--- scope: + "gnu/packages/django.scm" + "gnu/packages/jupyter.scm" + # + "gnu/packages/sphinx.scm" + "gnu/packages/tryton.scm" + "guix/build/pyproject-build-system.scm" + "guix/build-system/pyproject.scm" + "guix/build/python-build-system.scm" + "guix/build-system/python.scm" + "guix/import/pypi.scm" + "guix/scripts/import/pypi.scm" + "tests/pypi.scm"=20 --8<---------------cut here---------------end--------------->8--- Well, the =E2=80=99~%=E2=80=99 is included: (scope (format #f "scope:~%~{+ ~s~% ~}~%" scope)))) then there is one extra: --8<---------------cut here---------------start------------->8--- id: python name: Python team description: Python, Python packages, the "pypi" importer, and the python-b= uild-system. scope: + "gnu/packages/django.scm" + "gnu/packages/jupyter.scm" + # + "gnu/packages/sphinx.scm" + "gnu/packages/tryton.scm" + "guix/build/pyproject-build-system.scm" + "guix/build-system/pyproject.scm" + "guix/build/python-build-system.scm" + "guix/build-system/python.scm" + "guix/import/pypi.scm" + "guix/scripts/import/pypi.scm" + "tests/pypi.scm" =20 members: + Lars-Dominik Braun + jgart --8<---------------cut here---------------end--------------->8--- >> + string<=3D?))))) > > At that point, scope is not always a string: > > --8<---------------cut here---------------start------------->8--- > ERROR: In procedure string<=3D?: > In procedure string<=3D: Wrong type argument in position 1 (expecting str= ing): # > --8<---------------cut here---------------end--------------->8--- Hum, I miss how you get that. This, (map (lambda (scope) (format #f "+ ~a~%" scope)) scope-files) transforms all as string. For instance, applying this patch on the top of the introduction of =E2=80=9C./etc/teams.scm show=E2=80=9D, I get: --8<---------------cut here---------------start------------->8--- id: python name: Python team description: Python, Python packages, the "pypi" importer, and the python-b= uild-system. scope: + # + gnu/packages/django.scm + gnu/packages/jupyter.scm + gnu/packages/sphinx.scm + gnu/packages/tryton.scm + guix/build-system/pyproject.scm + guix/build-system/python.scm + guix/build/pyproject-build-system.scm + guix/build/python-build-system.scm + guix/import/pypi.scm + guix/scripts/import/pypi.scm + tests/pypi.scm members: + Lars-Dominik Braun + jgart --8<---------------cut here---------------end--------------->8--- Cheers, simon