guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: hydra: build-package-metadata: Add boolean for Gi


From: Mathieu Othacehe
Subject: branch master updated: hydra: build-package-metadata: Add boolean for Git submodules in sources.json.
Date: Tue, 17 Oct 2023 08:29:01 -0400

This is an automated email from the git hooks/post-receive script.

mothacehe pushed a commit to branch master
in repository maintenance.

The following commit(s) were added to refs/heads/master by this push:
     new 092db20  hydra: build-package-metadata: Add boolean for Git submodules 
in sources.json.
092db20 is described below

commit 092db20bcf47ea5d20342594271dc7dacb5ae926
Author: Simon Tournier <zimon.toutoune@gmail.com>
AuthorDate: Tue Oct 17 13:58:24 2023 +0200

    hydra: build-package-metadata: Add boolean for Git submodules in 
sources.json.
    
    This format had been discussed in
    
<https://gitlab.softwareheritage.org/swh/devel/swh-loader-git/-/issues/4751#note_150607>
    
    * hydra/build-package-metadata.scm (origin->json)[resolve]: Add the keyword
    'submodule' when the Git reference is recursive.
    
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 hydra/build-package-metadata.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/hydra/build-package-metadata.scm b/hydra/build-package-metadata.scm
index 0a75204..6b862eb 100755
--- a/hydra/build-package-metadata.scm
+++ b/hydra/build-package-metadata.scm
@@ -182,7 +182,10 @@ superseded packages."
                                             "recursive"))))
                '())
          ,@(if (eq? method git-fetch)
-               `(("git_ref" . ,(git-reference-commit uri)))
+               `(("git_ref" . ,(git-reference-commit uri))
+                 ,@(if (git-reference-recursive? uri)
+                       '(("submodule" . #true))
+                       '()))
                '())
          ,@(if (eq? method svn-fetch)
                `(("svn_revision" . ,(svn-reference-revision uri)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]