diff options
author | Sharlatan Hellseher <[email protected]> | 2025-01-09 11:25:39 +0000 |
---|---|---|
committer | Sharlatan Hellseher <[email protected]> | 2025-01-21 23:47:48 +0000 |
commit | 519d7cf948736887e1c6a46257b275c78091a57c (patch) | |
tree | 91540664dbc8d90d34d7a65a1c6c43b68e28a646 | |
parent | 12b99d2854e7097e4ef51a8728da5466a9a3fd34 (diff) |
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
-rw-r--r-- | gnu/packages/configuration-management.scm | 2 | ||||
-rw-r--r-- | gnu/packages/golang-vcs.scm | 65 | ||||
-rw-r--r-- | 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" "[email protected]") + (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 c5d30ebb9c..0990689a92 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -4179,67 +4179,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" "[email protected]") - (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")) |