mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gexp: No symlinks for ‘imported-files/derivation’.
Fixes <https://issues.guix.gnu.org/76376>. This is a followup to 149de38d0a2560277ee9bdda2104fbd45608bcb2, which did not suitably follow symlinks. The test case didn’t catch this because, when using ‘--disable-chroot’, the symlink target is accessible within the build environment. * guix/gexp.scm (imported-files/derivation): Call ‘readlink*’ on ‘file-name’. Co-authored-by: Ryan Sundberg <ryan@arctype.co> Change-Id: Idc5b59cd8f0c1217e84c7cbfba64d97d5999429f
This commit is contained in:
parent
1548403fa7
commit
2447880875
1 changed files with 1 additions and 1 deletions
|
@ -1586,7 +1586,7 @@ to the source files instead of copying them."
|
||||||
(define file-pair
|
(define file-pair
|
||||||
(match-lambda
|
(match-lambda
|
||||||
((final-path . (? string? file-name))
|
((final-path . (? string? file-name))
|
||||||
(mlet %store-monad ((file (interned-file file-name
|
(mlet %store-monad ((file (interned-file (readlink* file-name)
|
||||||
(basename final-path))))
|
(basename final-path))))
|
||||||
(return (list final-path file))))
|
(return (list final-path file))))
|
||||||
((final-path . file-like)
|
((final-path . file-like)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue