mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gexp: 'assume-valid-file-name' has files looked up under the CWD.
Fixes a bug introduced in 5d4ad8e1be
,
whereby files enclosed in 'assume-valid-file-name' would be looked up
relative to the source directory instead of relative to the current
directory.
* guix/gexp.scm (local-file): In the 'assume-valid-file-name' case, look
up FILE relative to the current working directory.
This commit is contained in:
parent
d14221bf65
commit
6be7146130
1 changed files with 2 additions and 2 deletions
|
@ -457,11 +457,11 @@ (define-syntax local-file
|
|||
(delay (absolute-file-name file (current-source-directory)))
|
||||
rest ...))
|
||||
((_ (assume-valid-file-name file) rest ...)
|
||||
;; FILE is not a literal, so resolve it relative to the source
|
||||
;; FILE is not a literal, so resolve it relative to the current
|
||||
;; directory. Since the user declared FILE is valid, do not pass
|
||||
;; #:literal? #f so that we do not warn about it later on.
|
||||
#'(%local-file file
|
||||
(delay (absolute-file-name file (current-source-directory)))
|
||||
(delay (absolute-file-name file (getcwd)))
|
||||
rest ...))
|
||||
((_ file rest ...)
|
||||
;; Resolve FILE relative to the current directory.
|
||||
|
|
Loading…
Reference in a new issue