build-system/gnu: Remove the source directory from search paths.

Fixes <https://issues.guix.gnu.org/44924>.

* guix/build/gnu-build-system.scm (set-paths): Delete 'source' from
'input-directories'.
This commit is contained in:
宋文武 2020-12-05 11:35:37 +08:00
parent 0fc9f34f1c
commit 968f541c36
No known key found for this signature in database
GPG key ID: D415BF253B515976

View file

@ -72,7 +72,9 @@ (define* (set-paths #:key target inputs native-inputs
(search-paths '()) (native-search-paths '())
#:allow-other-keys)
(define input-directories
(match inputs
;; The "source" input can be a directory, but we don't want it for search
;; paths. See <https://issues.guix.gnu.org/44924>.
(match (alist-delete "source" inputs)
(((_ . dir) ...)
dir)))