gnu: go-github-com-pkg-errors: Skip tests with gccgo.
* gnu/packages/golang.scm (go-github-com-pkg-errors)[arguments]: Don't run the test suite when building with gccgo.
This commit is contained in:
		
							parent
							
								
									b0c9f03248
								
							
						
					
					
						commit
						25494265b2
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
					@ -54,6 +54,7 @@
 | 
				
			||||||
(define-module (gnu packages golang)
 | 
					(define-module (gnu packages golang)
 | 
				
			||||||
  #:use-module ((guix licenses) #:prefix license:)
 | 
					  #:use-module ((guix licenses) #:prefix license:)
 | 
				
			||||||
  #:use-module (guix utils)
 | 
					  #:use-module (guix utils)
 | 
				
			||||||
 | 
					  #:use-module (guix gexp)
 | 
				
			||||||
  #:use-module (guix memoization)
 | 
					  #:use-module (guix memoization)
 | 
				
			||||||
  #:use-module ((guix build utils) #:select (alist-replace))
 | 
					  #:use-module ((guix build utils) #:select (alist-replace))
 | 
				
			||||||
  #:use-module (guix download)
 | 
					  #:use-module (guix download)
 | 
				
			||||||
| 
						 | 
					@ -6017,7 +6018,16 @@ decode/encode structures and slices.")
 | 
				
			||||||
                "1761pybhc2kqr6v5fm8faj08x9bql8427yqg6vnfv6nhrasx1mwq"))))
 | 
					                "1761pybhc2kqr6v5fm8faj08x9bql8427yqg6vnfv6nhrasx1mwq"))))
 | 
				
			||||||
    (build-system go-build-system)
 | 
					    (build-system go-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:import-path "github.com/pkg/errors"))
 | 
					     (list
 | 
				
			||||||
 | 
					       #:import-path "github.com/pkg/errors"
 | 
				
			||||||
 | 
					       #:phases
 | 
				
			||||||
 | 
					       #~(modify-phases %standard-phases
 | 
				
			||||||
 | 
					           (replace 'check
 | 
				
			||||||
 | 
					             (lambda* (#:key inputs #:allow-other-keys #:rest args)
 | 
				
			||||||
 | 
					               (unless
 | 
				
			||||||
 | 
					                 ;; The tests fail when run with gccgo.
 | 
				
			||||||
 | 
					                 (false-if-exception (search-input-file inputs "/bin/gccgo"))
 | 
				
			||||||
 | 
					                 (apply (assoc-ref %standard-phases 'check) args)))))))
 | 
				
			||||||
    (synopsis "Go error handling primitives")
 | 
					    (synopsis "Go error handling primitives")
 | 
				
			||||||
    (description "This package provides @code{error}, which offers simple
 | 
					    (description "This package provides @code{error}, which offers simple
 | 
				
			||||||
error handling primitives in Go.")
 | 
					error handling primitives in Go.")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue