guix-commits
[Top][All Lists]
Advanced

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

05/17: gnu: go-github-com-go-git-go-git-v5: Move to golang-vcs.


From: guix-commits
Subject: 05/17: gnu: go-github-com-go-git-go-git-v5: Move to golang-vcs.
Date: Thu, 9 Jan 2025 09:04:11 -0500 (EST)

sharlatan pushed a commit to branch go-team
in repository guix.

commit 1cab55f97118e0a903e541ff19b55651cb73b8e1
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Jan 9 11:25:39 2025 +0000

    gnu: go-github-com-go-git-go-git-v5: Move to golang-vcs.
    
    * gnu/packages/version-control.scm (go-github-com-go-git-go-git-v5):
    Move from here ...
    * gnu/packages/golang-vcs.scm: ... to here.
    Add golang-crypto and version-control modules.
    
    * gnu/packages/configuration-management.scm: Remove version-control, add
    golang-vcs module.
    
    Change-Id: I0125943bcb2ab719ad5667678b72ece7650f5e4b
---
 gnu/packages/configuration-management.scm |  2 +-
 gnu/packages/golang-vcs.scm               | 65 ++++++++++++++++++++++++++++++-
 gnu/packages/version-control.scm          | 61 -----------------------------
 3 files changed, 65 insertions(+), 63 deletions(-)

diff --git a/gnu/packages/configuration-management.scm 
b/gnu/packages/configuration-management.scm
index b654975a42..3482e327f7 100644
--- a/gnu/packages/configuration-management.scm
+++ b/gnu/packages/configuration-management.scm
@@ -25,9 +25,9 @@
   #:use-module (gnu packages golang)
   #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-check)
+  #:use-module (gnu packages golang-vcs)
   #:use-module (gnu packages golang-web)
   #:use-module (gnu packages golang-xyz)
-  #:use-module (gnu packages version-control)
   #:use-module (gnu packages textutils)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
diff --git a/gnu/packages/golang-vcs.scm b/gnu/packages/golang-vcs.scm
index 967b5ea93d..2c2dcc2d11 100644
--- a/gnu/packages/golang-vcs.scm
+++ b/gnu/packages/golang-vcs.scm
@@ -26,8 +26,10 @@
   #:use-module (gnu packages)
   #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-check)
+  #:use-module (gnu packages golang-crypto)
   #:use-module (gnu packages golang-web)
-  #:use-module (gnu packages golang-xyz))
+  #:use-module (gnu packages golang-xyz)
+  #:use-module (gnu packages version-control))
 
 ;;; Commentary:
 ;;;
@@ -67,6 +69,67 @@
     (description "Gcfg reads INI-style configuration files into Go structs.")
     (license license:bsd-3)))
 
+(define-public go-github-com-go-git-go-git-v5
+  (package
+    (name "go-github-com-go-git-go-git-v5")
+    (version "5.13.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/go-git/go-git";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1mgzwwmq1awai9n8vkjp8xpq26hvivl53g57f1k2cgg6bkj13r2a"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:tests? #f ;requires network connection
+      #:import-path "github.com/go-git/go-git/v5"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'setup
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let* ((git #$(this-package-native-input "git-minimal"))
+                     (git-bin (string-append git "/bin"))
+                     (git-exe (string-append git-bin "/git")))
+                (setenv "GIT_DIST_PATH=" git)
+                (setenv "GIT_EXEC_PATH=" git-bin)
+                (setenv "HOME" (getcwd))
+                (invoke git-exe "config" "--global" "user.email" 
"gha@example.com")
+                (invoke git-exe "config" "--global" "user.name" "GitHub 
Actions")))))))
+    (native-inputs
+     (list git-minimal/pinned
+           go-github-com-stretchr-testify
+           go-gopkg-in-check-v1))
+    (propagated-inputs
+     (list go-dario-cat-mergo
+           go-github-com-armon-go-socks5
+           go-github-com-elazarl-goproxy
+           go-github-com-emirpasic-gods
+           go-github-com-gliderlabs-ssh
+           go-github-com-go-git-gcfg
+           go-github-com-go-git-go-billy-v5
+           go-github-com-go-git-go-git-fixtures-v4
+           go-github-com-golang-groupcache
+           go-github-com-google-go-cmp
+           go-github-com-jbenet-go-context
+           go-github-com-kevinburke-ssh-config
+           go-github-com-pjbgf-sha1cd
+           go-github-com-protonmail-go-crypto
+           go-github-com-sergi-go-diff
+           go-github-com-skeema-knownhosts
+           go-github-com-xanzy-ssh-agent
+           go-golang-org-x-crypto
+           go-golang-org-x-net
+           go-golang-org-x-sys
+           go-golang-org-x-text))
+    (home-page "https://github.com/go-git/";)
+    (synopsis "Git implementation library")
+    (description "This package provides a Git implementation library.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-xanzy-go-gitlab
   (package
     (name "go-github-com-xanzy-go-gitlab")
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 9687f6d6ee..eda956d9b1 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -4042,67 +4042,6 @@ of machine readable.  This helps improve code quality 
and helps you spot
 defects faster.")
     (license license:expat)))
 
-(define-public go-github-com-go-git-go-git-v5
-  (package
-    (name "go-github-com-go-git-go-git-v5")
-    (version "5.13.1")
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/go-git/go-git";)
-                    (commit (string-append "v" version))))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "1mgzwwmq1awai9n8vkjp8xpq26hvivl53g57f1k2cgg6bkj13r2a"))))
-    (build-system go-build-system)
-    (arguments
-     (list
-      #:tests? #f ;requires network connection
-      #:import-path "github.com/go-git/go-git/v5"
-      #:phases
-      #~(modify-phases %standard-phases
-          (add-before 'build 'setup
-            (lambda* (#:key inputs #:allow-other-keys)
-              (let* ((git #$(this-package-native-input "git-minimal"))
-                     (git-bin (string-append git "/bin"))
-                     (git-exe (string-append git-bin "/git")))
-                (setenv "GIT_DIST_PATH=" git)
-                (setenv "GIT_EXEC_PATH=" git-bin)
-                (setenv "HOME" (getcwd))
-                (invoke git-exe "config" "--global" "user.email" 
"gha@example.com")
-                (invoke git-exe "config" "--global" "user.name" "GitHub 
Actions")))))))
-    (native-inputs
-     (list git-minimal/pinned
-           go-github-com-stretchr-testify
-           go-gopkg-in-check-v1))
-    (propagated-inputs
-     (list go-dario-cat-mergo
-           go-github-com-armon-go-socks5
-           go-github-com-elazarl-goproxy
-           go-github-com-emirpasic-gods
-           go-github-com-gliderlabs-ssh
-           go-github-com-go-git-gcfg
-           go-github-com-go-git-go-billy-v5
-           go-github-com-go-git-go-git-fixtures-v4
-           go-github-com-golang-groupcache
-           go-github-com-google-go-cmp
-           go-github-com-jbenet-go-context
-           go-github-com-kevinburke-ssh-config
-           go-github-com-pjbgf-sha1cd
-           go-github-com-protonmail-go-crypto
-           go-github-com-sergi-go-diff
-           go-github-com-skeema-knownhosts
-           go-github-com-xanzy-ssh-agent
-           go-golang-org-x-crypto
-           go-golang-org-x-net
-           go-golang-org-x-sys
-           go-golang-org-x-text))
-    (home-page "https://github.com/go-git/";)
-    (synopsis "Git implementation library")
-    (description "This package provides a Git implementation library.")
-    (license license:asl2.0)))
-
 (define-public gita
   (let ((commit "e41b504dca90a25e9be27f296da7ce22e5782893")
         (revision "1"))



reply via email to

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