diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index ee6cd78107..afef900bbb 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -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