~ruther/guix-local

199fd8541c74b6a459b71166adfced46077779a2 — Sharlatan Hellseher 1 year, 1 month ago a6d0073
gnu: godef: Use skip tests.

* gnu/packages/go-apps.scm (godef) [arguments] <test-flags>: Add "-skip"
option instead of deleting the whole test file.
<phases>: Remove 'delete-problematic-tests.

Change-Id: I67867a4ea89c102761a2504d39c09d9b157d59bb
1 files changed, 6 insertions(+), 8 deletions(-)

M gnu/packages/go-apps.scm
M gnu/packages/go-apps.scm => gnu/packages/go-apps.scm +6 -8
@@ 47,14 47,12 @@
    (arguments
     (list
      #:import-path "github.com/rogpeppe/godef"
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'delete-problematic-tests
            (lambda _
              ;; The TestGoDef/Modules test fails, because of the lack of Go
              ;; modules support.
              (delete-file "src/github.com/rogpeppe/godef/godef_test.go"))))))
    (inputs (list go-golang-org-x-tools go-ninefans-net-go))
      ;; The TestGoDef/Modules test fails, because of the lack of Go modules
      ;; support.
      #:test-flags #~(list "-skip" "TestGoDef/GOPATH|TestGoDef/Modules")))
    (inputs
     (list go-golang-org-x-tools
           go-ninefans-net-go))
    (home-page "https://github.com/rogpeppe/godef")
    (synopsis "Print where symbols are defined in Go source code")
    (description "The @command{godef} command prints the source location of