bug#68829: [PATCH 3/3] gnu: Add git-sizer.
Commit Message
Hi,
Greg Hogan <code@greghogan.com> skribis:
> * gnu/packages/version-control.scm (git-sizer): New variable.
>
> Change-Id: I82a61e364782dabfd59d0e81ff310fa916b5ff23
Applied with the change below (suggested by ‘guix lint’).
Thanks,
Ludo’.
@@ -4028,12 +4028,14 @@ (define-public git-sizer
(string-append (assoc-ref outputs "out")
"/bin/git-sizer")))))
(replace 'check
- (lambda* (#:key import-path #:allow-other-keys)
- (for-each (lambda (test)
- (invoke "go" "test" "-v" "-run" test import-path))
- ;; TestExec and TestSubmodule require a copy of the Git repository.
- '("TestBomb" "TestFromSubdir" "TestRefgroups"
- "TestRefSelections" "TestTaggedTags")))))))
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (when tests?
+ (for-each (lambda (test)
+ (invoke "go" "test" "-v" "-run" test import-path))
+ ;; TestExec and TestSubmodule require a copy of the
+ ;; Git repository.
+ '("TestBomb" "TestFromSubdir" "TestRefgroups"
+ "TestRefSelections" "TestTaggedTags"))))))))
(native-inputs (list git))
(propagated-inputs
(list go-github-com-cli-safeexec