diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-11-29 22:02:21 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-11-29 22:02:21 +0200 |
commit | bdbb9dc27a590b08651d058f06a42caa26e04abb (patch) | |
tree | e9482f101ed1cce1f7b7a81c05f2f0bb174b92dc | |
parent | 7696c8819f6e03d057e01ef004e9456ca22b89a3 (diff) | |
download | guix-bdbb9dc27a590b08651d058f06a42caa26e04abb.tar.gz |
gnu: go-gotest-tools-internal-source: Skip tests with gccgo.
* gnu/packages/golang.scm (go-gotest-tools-internal-source)[arguments]: When building with gccgo skip the test suite. Change-Id: Ibe3569d9449321dd13ac7691273644d83f8fb38b
-rw-r--r-- | gnu/packages/golang.scm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5e9211026b..45b895ca40 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8568,6 +8568,17 @@ with gotest-tools."))) (define-public go-gotest-tools-internal-source (package (inherit (go-gotest-tools-package "internal/source")) + (arguments + (substitute-keyword-arguments + (package-arguments (go-gotest-tools-package "internal/source")) + ((#:phases phases #~%standard-phases) + #~(modify-phases #$phases + (replace 'check + (lambda* (#:key inputs #:allow-other-keys #:rest args) + (unless + ;; failed to parse source file: : open : no such file or directory + (false-if-exception (search-input-file inputs "/bin/gccgo")) + (apply (assoc-ref %standard-phases 'check) args)))))))) (native-inputs (list go-github-com-pkg-errors go-github-com-google-go-cmp-cmp)) (synopsis "Source code AST formatters for gotest-tools") |