GNU bug report logs - #56610
Guix Home placing dotfiles in wrong directory.

Previous Next

Package: guix;

Reported by: Raghav Gururajan <rg <at> raghavgururajan.name>

Date: Sun, 17 Jul 2022 07:09:02 UTC

Severity: normal

Done: Oleg Pykhalov <go.wigust <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Oleg Pykhalov <go.wigust <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#56610: closed (Guix Home placing dotfiles in wrong directory.)
Date: Sun, 17 Jul 2022 08:35:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 17 Jul 2022 11:34:44 +0300
with message-id <87lessdtnf.fsf <at> gmail.com>
and subject line Re: bug#56610: Guix Home placing dotfiles in wrong directory.
has caused the debbugs.gnu.org bug report #56610,
regarding Guix Home placing dotfiles in wrong directory.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
56610: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56610
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Raghav Gururajan <rg <at> raghavgururajan.name>
To: bug-guix <at> gnu.org
Cc: Ludovic Courtès <ludo <at> gnu.org>, andrew <at> trop.in
Subject: Guix Home placing dotfiles in wrong directory.
Date: Sun, 17 Jul 2022 03:07:57 -0400
[Message part 3 (text/plain, inline)]
Hello Guix,

home-files-service-type is placing configuration files in `~/config/foo` 
instead of `~/.config/foo`.

For example, the following guix-home service should place the git 
configuration in ~/.config/git`. But it creates a new directory 
`~/config/git` and places the file there.

    (simple-service 'git-config
                    home-files-service-type
                    (list
                     `("config/git/config"
                       ,(local-file
                         (string-append (getenv "HOME")
                                        "/dotfiles/git/config")))))

It started happening recently, so will try to bisect.

Regards,
RG.
[OpenPGP_signature (application/pgp-signature, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: Raghav Gururajan via Bug reports for GNU Guix <bug-guix <at> gnu.org>
Cc: 56610-done <at> debbugs.gnu.org
Subject: Re: bug#56610: Guix Home placing dotfiles in wrong directory.
Date: Sun, 17 Jul 2022 11:34:44 +0300
[Message part 6 (text/plain, inline)]
Hi,

Raghav Gururajan via Bug reports for GNU Guix <bug-guix <at> gnu.org> writes:

> home-files-service-type is placing configuration files in `~/config/foo`
> instead of `~/.config/foo`.
>
> For example, the following guix-home service should place the git
> configuration in ~/.config/git`. But it creates a new directory `~/config/git`
> and places the file there.
>
>     (simple-service 'git-config
>                     home-files-service-type
>                     (list
>                      `("config/git/config"
>                        ,(local-file
>                          (string-append (getenv "HOME")
>                                         "/dotfiles/git/config")))))
>
> It started happening recently, so will try to bisect.

It's not a bug, use ‘`(".config/git/config" ,(local-file ...))’.

I'll close the issue if you don't mind.

Oleg.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.