~ruther/guix-local

80345600faae388f508822818adfc990b1ebac66 — Danny Milosavljevic 9 years ago 57075ad
build: dub-build-system: Don't use "dub run" at all.

It doesn't make sense to run non-test executables (which is what "dub run"
would do).

The "check" function already invokes "dub test" and that's enough.

* guix/build/dub-build-system.scm (build): Remove "dub run" invocation.
1 files changed, 1 insertions(+), 3 deletions(-)

M guix/build/dub-build-system.scm
M guix/build/dub-build-system.scm => guix/build/dub-build-system.scm +1 -3
@@ 91,9 91,7 @@
          (grep* "sourceLibrary" "dub.sdl") ; note: format is different!
          (grep* "sourceLibrary" "dub.json"))
    #t
    (let ((status (zero? (apply system* `("dub" "build" ,@dub-build-flags)))))
      (system* "dub" "run") ; might fail for "targetType": "library"
      status)))
    (zero? (apply system* `("dub" "build" ,@dub-build-flags)))))

(define* (check #:key tests? #:allow-other-keys)
  (if tests?