From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QIWIJQwf8l59SAAA0tVLHw (envelope-from ) for ; Tue, 23 Jun 2020 15:26:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yGFBIQwf8l5XJQAAbx9fmQ (envelope-from ) for ; Tue, 23 Jun 2020 15:26:04 +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 F1F10940704 for ; Tue, 23 Jun 2020 15:26:03 +0000 (UTC) Received: from localhost ([::1]:58510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnkoE-0000Ff-RK for larch@yhetil.org; Tue, 23 Jun 2020 11:26:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnkcc-0004qo-O4 for guix-patches@gnu.org; Tue, 23 Jun 2020 11:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53647) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jnkcc-0007K2-E1 for guix-patches@gnu.org; Tue, 23 Jun 2020 11:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jnkcc-0006Gr-6r for guix-patches@gnu.org; Tue, 23 Jun 2020 11:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42019] [PATCH 0/1] sources.json compliant with SWH loader Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Jun 2020 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42019@debbugs.gnu.org Cc: zimoun X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159292522024066 (code B ref -1); Tue, 23 Jun 2020 15:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jun 2020 15:13:40 +0000 Received: from localhost ([127.0.0.1]:36960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnkcF-0006G6-SV for submit@debbugs.gnu.org; Tue, 23 Jun 2020 11:13:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:59120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnkcD-0006Fy-Ei for submit@debbugs.gnu.org; Tue, 23 Jun 2020 11:13:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnkcD-00049r-7x for guix-patches@gnu.org; Tue, 23 Jun 2020 11:13:37 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:34889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jnkcA-00070Y-R5 for guix-patches@gnu.org; Tue, 23 Jun 2020 11:13:36 -0400 Received: by mail-wm1-x32d.google.com with SMTP id g21so3645629wmg.0 for ; Tue, 23 Jun 2020 08:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dGcudQtIfd3qOwxYBWEUb8CHVMojlWlT7ckROFvsylk=; b=nnI8PSQsnkTBXn9h8wNFMmZIT2y4vtPMh17VQnrbNcVWQWNtdfTOluVrApzIvABCx6 ATwLInvZ9b3HCUqHSp3WZWladOOSzKJdnCz43IbXM9jbz8xTFvMlSGVDBBlnj4byFskH +pTC/FvEMO0KiXV8oQyXE2PBX9wFGe31ag/BYantr6dk7ZllGql1LjF4z1TCnqnWgFqr 3PvJvrcikORhhGoZM7exHkUjKqSrtcZS8h0nmXpUtfRHYEXk46IL2XFrAUPI50w0shDF Z2cxvWDktr2MgmM/l3E3we5KOp4jxljO8clMdCxmBuk5wMJjaaivwj5q/WAOtqKH7cjW J8vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dGcudQtIfd3qOwxYBWEUb8CHVMojlWlT7ckROFvsylk=; b=VHatpyIOPToRP9DEoHK7LKf1QQK69nTKfcNmVuLj86Gcp4Uhg8Nb6HWjXXBK90fdz0 TTNtNVusc02GC8gKUFCGCkhNwYfVU7epQgUA1hR8WhtzCNDFlFzi9dRRKXfZV2UDdLub BVimMLLeef5IfNNZc+Z5CuKw9VN44iSPDXwu8NV102z2KyN2OPyUVgu3eJxDkzxCOTU+ R2Co5ujW91q9ixC373cZdWhXjvwPvJDcih2ShId5+84MipqsqKMRLh5pZLE3yOqhdJwS vQXMjZd5RX9hm2SOdZnCsMt72aarp/fUek44n+Ck2xQhdPHcBy/DDmRP53OaclSx8t1e OrxA== X-Gm-Message-State: AOAM533tBgjbVX9bUs6qPqrnHNnZGSaUWhD7G5NHow9Ux4YqHrZaYL6l LDiZ6XEM+IwH00Fyeo2ReegPd48Zr1k= X-Google-Smtp-Source: ABdhPJxni9NVvpKLahFnioUCuTG42rRyGWyXCE4I+QJTvRjbfoF9YkAK6JmNDw/KeBbzFdUvLPU7RQ== X-Received: by 2002:a1c:9802:: with SMTP id a2mr23657967wme.64.1592925212844; Tue, 23 Jun 2020 08:13:32 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id n8sm19630726wrj.44.2020.06.23.08.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 08:13:32 -0700 (PDT) From: zimoun Date: Tue, 23 Jun 2020 17:13:23 +0200 Message-Id: <20200623151323.29639-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=nnI8PSQs; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.09 X-TUID: Xga82sPzm2Vi Dear, This patch adds the "integrity" field. It is SRI format i.e., 'origin-hash' is converted to 'base64'. The "revision" field is the Guix commit. It should be used by SWH; for example SWH could fetch several sources.json. Currently, the SWH loader does only support the formats [1] ".tar.gz$|.zip$|tar.bz2$|.tbz$|.tar.xz$|.tgz$|.tar$" and their advice is to filter out any other files (e.g., Gem). For now, there is no filter and it could be added then if it is really an issue for them. 1: https://forge.softwareheritage.org/T1352#45459 All the best, simon zimoun (1): website: Add integrity to JSON sources. website/apps/packages/builder.scm | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) base-commit: 36fdde5b3efad445291588a5bc17a11802eb7ff8 -- 2.26.2