build: go-build-system: Follow-up to commit f42e4ebb56
.
This follows commit f42e4ebb56
, which made it so that the unpack phase return
value could be left unspecified.
* guix/build/go-build-system.scm (unpack): Ensure that the value returned upon
a successful completion of the phase is #t.
master
parent
2edec51c5e
commit
a321312e3a
|
@ -174,8 +174,7 @@ unpacking."
|
||||||
(when (file-is-directory? top-level-file)
|
(when (file-is-directory? top-level-file)
|
||||||
(copy-recursively top-level-file dest #:keep-mtime? #t)))
|
(copy-recursively top-level-file dest #:keep-mtime? #t)))
|
||||||
(_
|
(_
|
||||||
(copy-recursively "." dest #:keep-mtime? #t)))
|
(copy-recursively "." dest #:keep-mtime? #t)))))
|
||||||
#t))
|
|
||||||
(delete-file-recursively scratch-dir)))
|
(delete-file-recursively scratch-dir)))
|
||||||
|
|
||||||
(when (string-null? import-path)
|
(when (string-null? import-path)
|
||||||
|
@ -185,10 +184,9 @@ unpacking."
|
||||||
(let ((dest (string-append (getenv "GOPATH") "/src/" unpack-path)))
|
(let ((dest (string-append (getenv "GOPATH") "/src/" unpack-path)))
|
||||||
(mkdir-p dest)
|
(mkdir-p dest)
|
||||||
(if (file-is-directory? source)
|
(if (file-is-directory? source)
|
||||||
(begin
|
(copy-recursively source dest #:keep-mtime? #t)
|
||||||
(copy-recursively source dest #:keep-mtime? #t)
|
(unpack-maybe-strip source dest)))
|
||||||
#t)
|
#t)
|
||||||
(unpack-maybe-strip source dest))))
|
|
||||||
|
|
||||||
(define (go-package? name)
|
(define (go-package? name)
|
||||||
(string-prefix? "go-" name))
|
(string-prefix? "go-" name))
|
||||||
|
|
Reference in New Issue