unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54003: local-file after Guile update
@ 2022-02-14 21:50 Aleksandr Vityazev
  2022-02-15  8:21 ` Liliana Marie Prikler
  2022-02-15 15:00 ` Ludovic Courtès
  0 siblings, 2 replies; 10+ messages in thread
From: Aleksandr Vityazev @ 2022-02-14 21:50 UTC (permalink / raw)
  To: 54003

Hi,

I have the following dotfiles directory structure where I store my Guix home
config:

|-etc
|
|-subdir
|   |
|   |-home


I often use the 'local-file' procedure in modules in the home directory. For
example in /subdir/home/shells.scm:

#+begin_src scheme :scheme guile :season guile
(simple-service 'add-zsh-files
                home-files-service-type
                `(("config/zsh/zshrc"
                   ,(local-file "../../etc/zsh/zshrc"))))
#+end_src
And it works, as expected.

The following example also worked before the
076e825dc5d585943ce820a279fffe4af09757fb (gnu: guile: Add version 3.0.8 as
'guile-3.0-latest') commit.

in /subdir/home/wm.scm: 
#+begin_src scheme :scheme guile :season guile
(service
 home-rofi-service-type
 (home-rofi-configuration
  (config-rasi
   `(,#~(format
         #f "@theme \"~a\""
         #$(local-file "../../etc/rofi/nord.rasi"))))))
#+end_src

After 076e825dc5d585943ce820a279fffe4af09757fb
using (local-file "../../etc/rofi/nord.rasi") and not
(local-file "etc/rofi/nord.rasi") causes an error:

guix home: error: canonicalize-path: No such file or
directory: "../../etc/rofi/nord.rasi".

The example that causes the error uses the original Guix home implementation,
which uses gexps.  When I figure out how to make a minimal reproducer that
does not depend on it, I will update this report.

-- 
Best regards,
Aleksandr Vityazev




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-03-07 13:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 21:50 bug#54003: local-file after Guile update Aleksandr Vityazev
2022-02-15  8:21 ` Liliana Marie Prikler
2022-02-15 15:00 ` Ludovic Courtès
2022-02-15 15:57   ` Maxim Cournoyer
2022-02-15 19:42     ` Ludovic Courtès
2022-02-15 20:56       ` Maxime Devos
2022-02-15 22:49         ` Ludovic Courtès
2022-02-16 10:40           ` Ludovic Courtès
2022-02-16 16:00             ` Ludovic Courtès
2022-03-07 13:18               ` bug#54003: 'local-file' fails to resolve relative file names with Guile 3.0.8 Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).