mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
build/go: Don't use set!
This causes build failures on powerpc-linux. * guix/build/go-build-system.scm (unpack): When the unpack-path is unset use the import-path but don't redefine the unpack-path. Change-Id: I2b5a36eb738abb14307941d388038139dbaf2bdf
This commit is contained in:
parent
6e2dd51df5
commit
0a4b6fd51a
1 changed files with 5 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
|
||||
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
||||
;;; Copyright © 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2020, 2021, 2023 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
|
@ -227,9 +227,10 @@ (define (unpack-maybe-strip source dest)
|
|||
|
||||
(when (string-null? import-path)
|
||||
(display "WARNING: The Go import path is unset.\n"))
|
||||
(when (string-null? unpack-path)
|
||||
(set! unpack-path import-path))
|
||||
(let ((dest (string-append (getenv "GOPATH") "/src/" unpack-path)))
|
||||
(let ((dest (string-append (getenv "GOPATH") "/src/"
|
||||
(if (string-null? unpack-path)
|
||||
import-path
|
||||
unpack-path))))
|
||||
(mkdir-p dest)
|
||||
(if (file-is-directory? source)
|
||||
(copy-recursively source dest #:keep-mtime? #t)
|
||||
|
|
Loading…
Reference in a new issue