From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WB1TAE1m1GEHSwEAgWs5BA (envelope-from ) for ; Tue, 04 Jan 2022 16:22:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4C68NExm1GFPCQAAG6o9tA (envelope-from ) for ; Tue, 04 Jan 2022 16:22:52 +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 5934928D68 for ; Tue, 4 Jan 2022 16:22:52 +0100 (CET) Received: from localhost ([::1]:33674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4leF-0000TW-6g for larch@yhetil.org; Tue, 04 Jan 2022 10:22:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4lRr-0006Pk-CR for guix-patches@gnu.org; Tue, 04 Jan 2022 10:10:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55139) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4lRr-0000Md-1F for guix-patches@gnu.org; Tue, 04 Jan 2022 10:10:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n4lRq-0004H0-Rw for guix-patches@gnu.org; Tue, 04 Jan 2022 10:10:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50072] [PATCH v3 0/4] Add upstream updater for git-fetch origins References: In-Reply-To: Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 Jan 2022 15:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50072@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Sarah Morgensen , Maxime Devos Received: via spool by 50072-submit@debbugs.gnu.org id=B50072.164130899416378 (code B ref 50072); Tue, 04 Jan 2022 15:10:02 +0000 Received: (at 50072) by debbugs.gnu.org; 4 Jan 2022 15:09:54 +0000 Received: from localhost ([127.0.0.1]:38446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4lRh-0004Fy-QU for submit@debbugs.gnu.org; Tue, 04 Jan 2022 10:09:54 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:40098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4lRX-0004F3-72 for 50072@debbugs.gnu.org; Tue, 04 Jan 2022 10:09:44 -0500 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id ef9g2600W4UW6Th06f9hSY; Tue, 04 Jan 2022 16:09:41 +0100 From: Maxime Devos Date: Tue, 4 Jan 2022 15:09:33 +0000 Message-Id: <20220104150937.35872-1-maximedevos@telenet.be> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1641308981; bh=JMdLdqd9HilnxtP8Yy8+yylK7pTOng54sLr8byIkMEo=; h=From:To:Cc:Subject:Date; b=WwEWdY78J8O08lPeEJTWDkWww4hoVm9LHih1/UfOql6oZ+o0zCmElNcjPMTXwpE/t j9RoJZwAxyw27jGQtNROaxPGR/91Dflk7p6mBqUwsmhDDXC0KG/junPfwcmUsP5YdT EYyLOdFT0yvzUjT0qOY+/TiP5sxMkPvDWfmjndEpl8ttLwPTEgwIAcofcRs+UPAnHH hU+0wV+Y1Xo1aiExCb6C6Tf8YXoVcuWfRv4k0iwvgcMOAb/NvHgmznI5xcr0ukq+Sm NlD1VZcRY8qrHqLKnx8dh8TtmZGdSzwLh62Ot0n0jhbCOYlkDMEbBJtTiphguQ5IQS 3WDZbrL4koJbw== 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" 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=1641309772; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=JMdLdqd9HilnxtP8Yy8+yylK7pTOng54sLr8byIkMEo=; b=KBRkP3wm6A3tpvh7ShY1/wL63ZVJtVwacTqE1eiZdedbPiRlRD6uqJc9fWlCALOupvzX5s YHEV4J0zDJkSFOKkHUT1dQOhQZBp2EVaxsVaGtEfvCnhPJ0h4KMtvQuOs1JgA6+2RS4Smi SPBgN39miqRf8Xkh5I/iLb02e5ELWp9nJ2+7bofbrmMywbB2br8KBEM8tczd4yXGjNZadX vZ5aunNl2At6HUoOIdEJn/w4ZQsnYxdp7AzIAPIXIHQzx8/P0LwjNODTbcSMDR05xgW6x+ yf/iyvLsCHX4fzPYZ3xxKvf64gN1UgvGMAwLPkIqqmeuDL/+evghAU694hDfkw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641309772; a=rsa-sha256; cv=none; b=mQKV0Lpc5RR4r5w5MMMGz/hrDbgbuYb7eF2RdZ7YLy6z3NHwqRRjVIJT30s9eqc3gY3bMx ZqgzbJOZzWID6/y3SfmH8RR08eV7+uozfjt1jfqDtOuIaVRNdaiQIL3MPIXYlD+E8/XOCH ejpb7Lzqb/2VewZFJT6o7/+CkDRfQUo6nfvd0ikCw4fvlEGtCJ0jzDH/wK/thIjyM3JOjB ML0I349NoVDNNrGgwQg+AkPdh/FEbILlyM/gXS60kmjJGcra+55a6JiOPkh0sQI5PikycA dxGd/lnDzqn/yubYj97pOsU7kfpIopAJcnWs2rXUZfTTEvtSn1rVawY82Qrorg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=WwEWdY78; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: -0.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=WwEWdY78; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: 5934928D68 X-Spam-Score: -0.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: st0JwOaR7xrH The following changes were made since v2: * file-hash* has been modified to, by default, only compute nar hash if the file is a directory. * Most uses of file-hash* have been modified to explicitely set #:recursive? #false or #:recursive? #true * the compiler has been modified to support git-fetch origins. However, it is broken, and I don't know how to resolve the issue. (Except perhaps by using latest-repository-commit directly but that shouldn't be necessary, since objects are lowerable?) * 'guess-version-transform' has been removed, since it is unused. Checklist: - [x] make check There's one test failure: FAIL: tests/guix-pack-relocatable.sh guix pack: error: profile contains conflicting entries for python-numpy guix pack: error: first entry: python-numpy@1.21.3 /gnu/store/9dd0zkkwl45rmsa7b6vjb1747l57aw4y-python-numpy-1.21.3R guix pack: error: second entry: python-numpy@1.20.3 /gnu/store/mlccgh05bf8cdinq0ilpvpdmsspq36pv-python-numpy-1.20.3R guix pack: error: ... propagated from python-matplotlib@3.4.3 guix pack: error: ... propagated from python-scipy@1.7.3 guix/build/syscalls.scm:2271:8: In procedure terminal-window-size: In procedure terminal-window-size: Inappropriate ioctl for device (This is from within Emacs.) It seems unrelated to this patch series; - [ ] guix build --source minetest-unified-inventory --with-latest=minetest-unified-inventory This causes Wrong type to apply: #< url: "https://github.com/minetest-mods/unified_inventory" branch: #f commit: "d6688872c84417d2f61d6f5e607aea39d78920aa" recursive?: #f> but I don't know how to resolve this. - [x] guix refresh minetest-unified-inventory -t minetest - [x] guix refresh -t minetest -u minetest-unified-inventory Version, hash and commit seem ok. - [x] move "hello" to earlier version, do "guix refresh hello" An update '2.9' -> '2.10' is available. - [ ] guix refresh -u hello gpgv: Signature made Sun Nov 16 12:08:37 2014 UTC gpgv: using RSA key A9553245FDE9B739 gpgv: Can't check signature: No public key Would you like to add this key to keyring '$HOME/.config/guix/upstream/trustedkeys.kbx'? yes gpg: key A9553245FDE9B739: new key but contains no user ID - skipped gpg: Total number processed: 1 gpg: w/o user IDs: 1 gpgv: Signature made Sun Nov 16 12:08:37 2014 UTC gpgv: using RSA key A9553245FDE9B739 gpgv: Can't check signature: No public key guix refresh: warning: signature verification failed for 'mirror://gnu/hello/hello-2.10.tar.gz' (key: A9553245FDE9B739) guix refresh: warning: hello: version 2.10 could not be downloaded and authenticated; not updating Failure seems unrelated to patch series. - [x] "./pre-inst-env guix download mirror://gnu/hello/hello-2.10.tar.gz" and "./pre-inst-env guix hash /gnu/store/STUFF" return the same hash - [x] ./pre-inst-env guix hash -r $(./pre-inst-env guix build --source minetest-mesecons) returns the hash in the minetest-mesecons package Also a warning: ‘--recursive is deprecated, use --serializer' instead, but 'guix hash --help' doesn't tell what the argument of '--serializer' can be so I think I'll stick with '-r' for now. Sarah Morgensen (4): guix hash: Extract file hashing procedures. import: Factorize file hashing. refresh: Support non-tarball sources. upstream: Support updating and fetching 'git-fetch' origins. Makefile.am | 1 + guix/git.scm | 14 ++++++++- guix/hash.scm | 68 ++++++++++++++++++++++++++++++++++++++++ guix/import/cran.scm | 32 ++----------------- guix/import/elpa.scm | 29 +++-------------- guix/import/git.scm | 22 +++++++------ guix/import/go.scm | 25 ++------------- guix/import/minetest.scm | 25 +++++++-------- guix/scripts/hash.scm | 22 +++---------- guix/scripts/refresh.scm | 10 +++--- guix/upstream.scm | 68 +++++++++++++++++++++++++++++++++++----- tests/minetest.scm | 7 ++--- 12 files changed, 190 insertions(+), 133 deletions(-) create mode 100644 guix/hash.scm base-commit: 9708681f1a9f221ae6cad64625ba8309b6742653 -- 2.30.2