me
/
guix
Archived
1
0
Fork 0

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
Maxim Cournoyer 2019-05-05 23:01:03 -04:00
parent 2edec51c5e
commit a321312e3a
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 4 additions and 6 deletions

View File

@ -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))