* [bug#30833] [PATCH] git-download: Fix recursive checkouts.
@ 2018-03-16 4:28 Eric Bavier
2018-03-17 21:24 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Eric Bavier @ 2018-03-16 4:28 UTC (permalink / raw)
To: 30833
[-- Attachment #1.1: Type: text/plain, Size: 994 bytes --]
Hello Guix,
The attached patch fixes a regression in recursive git checkouts of
package source, which I believe was introduced in
6dff905e51202bbdebbad8811b6509584d12a796 (2017-09-05!)
This would have only affected 6 packages:
scheme@(guile-user)> (format #t "~{~a~%~}"
(fold-packages
(lambda (p r)
(if (and=> (package-source p)
(lambda (s)
(and (git-reference? (origin-uri s))
(git-reference-recursive? (origin-uri s)))))
(cons p r)
r))
'())
#<package brotli@0.1-1.e992cce gnu/packages/compression.scm:912 2928000>
#<package aseba@1.6.0-0.3b35de8 gnu/packages/robotics.scm:79 3199e40>
#<package cool-retro-term@1.0.1-1.dd799cf gnu/packages/terminals.scm:446 2e28b40>
#<package termite@13 gnu/packages/terminals.scm:102 2e25240>
#<package wget2@1.0.0 gnu/packages/wget.scm:126 2728900>
#<package zile-on-guile@2.4.14-0.fd09781 gnu/packages/zile.scm:83 3c660c0>
$8 = #t
`~Eric
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-git-download-Fix-recursive-checkouts.patch --]
[-- Type: text/x-patch, Size: 1094 bytes --]
From 7798ecb3e61b042e4af3c0501f32d6b8888c1a13 Mon Sep 17 00:00:00 2001
From: Eric Bavier <bavier@member.fsf.org>
Date: Thu, 15 Mar 2018 23:25:01 -0500
Subject: [PATCH] git-download: Fix recursive checkouts.
* guix/git-download.scm (git-fetch)<build>: Fix match on INPUTS, which may
contain package outputs.
---
guix/git-download.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/git-download.scm b/guix/git-download.scm
index 731e549b3..33f102bc6 100644
--- a/guix/git-download.scm
+++ b/guix/git-download.scm
@@ -109,7 +109,7 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a generic name if #f."
;; grep, etc. to be in $PATH.
(set-path-environment-variable "PATH" '("bin")
(match '#+inputs
- (((names dirs) ...)
+ (((names dirs outputs ...) ...)
dirs)))
(or (git-fetch (getenv "git url") (getenv "git commit")
--
2.16.2
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [bug#30833] [PATCH] git-download: Fix recursive checkouts.
2018-03-16 4:28 [bug#30833] [PATCH] git-download: Fix recursive checkouts Eric Bavier
@ 2018-03-17 21:24 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-03-17 21:24 UTC (permalink / raw)
To: Eric Bavier; +Cc: 30833
Hi Eric,
Eric Bavier <ericbavier@centurylink.net> skribis:
> The attached patch fixes a regression in recursive git checkouts of
> package source, which I believe was introduced in
> 6dff905e51202bbdebbad8811b6509584d12a796 (2017-09-05!)
Indeed, good catch!
> From 7798ecb3e61b042e4af3c0501f32d6b8888c1a13 Mon Sep 17 00:00:00 2001
> From: Eric Bavier <bavier@member.fsf.org>
> Date: Thu, 15 Mar 2018 23:25:01 -0500
> Subject: [PATCH] git-download: Fix recursive checkouts.
>
> * guix/git-download.scm (git-fetch)<build>: Fix match on INPUTS, which may
> contain package outputs.
LGTM, thank you!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-17 21:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-16 4:28 [bug#30833] [PATCH] git-download: Fix recursive checkouts Eric Bavier
2018-03-17 21:24 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).