mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 06:46:50 +01:00
gnu: git-sizer: Pin git version.
* gnu/packages/version-control.scm (git-sizer) [arguments]<#:phases>: Hard-code git path in 'fix-paths. [native-inputs]: Remove git. [inputs]: Add git-minimal/pinned. Change-Id: If6178a0e1c453ea47a1f70cd507639b5be2142b0 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
b90b8771fd
commit
6642b8021f
1 changed files with 7 additions and 2 deletions
|
@ -4464,7 +4464,12 @@ (define-public git-sizer
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-paths
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(substitute* '("src/github.com/github/git-sizer/git/git.go")
|
||||
(("gitBin, err := findGitBin\\(\\)")
|
||||
(string-append "gitBin := \""
|
||||
(search-input-file inputs "bin/git")
|
||||
"\"\n\tvar err error")))
|
||||
(substitute* '("src/github.com/github/git-sizer/git_sizer_test.go")
|
||||
(("bin/git-sizer")
|
||||
(string-append (assoc-ref outputs "out")
|
||||
|
@ -4478,7 +4483,7 @@ (define-public git-sizer
|
|||
;; Git repository.
|
||||
'("TestBomb" "TestFromSubdir" "TestRefgroups"
|
||||
"TestRefSelections" "TestTaggedTags"))))))))
|
||||
(native-inputs (list git))
|
||||
(inputs (list git-minimal/pinned))
|
||||
(propagated-inputs
|
||||
(list go-github-com-cli-safeexec
|
||||
go-github-com-davecgh-go-spew
|
||||
|
|
Loading…
Reference in a new issue