~ruther/guix-local

72ac2b3c02c006c13281f544059bc90ed8964013 — Sharlatan Hellseher 1 year, 4 months ago ae32c2a
gnu: go-github-com-mikefarah-yq-v4: Enable all tests.

* gnu/packages/web.scm (go-github-com-mikefarah-yq-v4) [arguments]
<skip-build>: To treat it as a library.
<phases>: Remove 'remove-binary, add 'fix-access-to-doc.

Change-Id: Ie51ed0b6a0aad03ed15ae27b2a7516ac542de3cf
1 files changed, 11 insertions(+), 8 deletions(-)

M gnu/packages/web.scm
M gnu/packages/web.scm => gnu/packages/web.scm +11 -8
@@ 5528,14 5528,17 @@ you'd expect.")
                "0s7c8r6y5jv6wda2v3k47hawfdr9j3rwk717l6byvh5qsbbml0vd"))))
    (build-system go-build-system)
    (arguments
     (list #:import-path "github.com/mikefarah/yq/v4"
           #:test-subdirs #~(list ".") ; XXX: try to enable all tests
           #:phases
           #~(modify-phases %standard-phases
               (add-after 'install 'remove-binary
                 (lambda _
                   (delete-file-recursively
                    (string-append #$output "/bin")))))))
     (list
      #:skip-build? #t
      #:import-path "github.com/mikefarah/yq/v4"
      #:phases
      #~(modify-phases %standard-phases
          ;; Tests need this.
          (add-after 'unpack 'fix-access-to-doc
            (lambda* (#:key import-path #:allow-other-keys)
              (with-directory-excursion (string-append "src/" import-path)
                (for-each make-file-writable
                          (find-files "./pkg/yqlib/doc" "\\.md"))))))))
    (propagated-inputs
     (list go-github-com-a8m-envsubst
           go-github-com-alecthomas-participle-v2