GNU bug report logs -
#56610
Guix Home placing dotfiles in wrong directory.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56610 in the body.
You can then email your comments to 56610 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#56610
; Package
guix
.
(Sun, 17 Jul 2022 07:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Raghav Gururajan <rg <at> raghavgururajan.name>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sun, 17 Jul 2022 07:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (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)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#56610
; Package
guix
.
(Sun, 17 Jul 2022 08:35:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (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)]
Reply sent
to
Oleg Pykhalov <go.wigust <at> gmail.com>
:
You have taken responsibility.
(Sun, 17 Jul 2022 08:35:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Raghav Gururajan <rg <at> raghavgururajan.name>
:
bug acknowledged by developer.
(Sun, 17 Jul 2022 08:35:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#56610
; Package
guix
.
(Mon, 18 Jul 2022 06:32:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 56610 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2022-07-17 03:07, Raghav Gururajan via Bug reports for wrote:
> 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.
It's intended https://yhetil.org/guix-devel/87v8w2se04.fsf <at> trop.in/
Updates to the documentation is on the way:
https://yhetil.org/guix-patches/87h74abbn6.fsf <at> trop.in/
>
> (simple-service 'git-config
> home-files-service-type
In this case, it's better to use home-xdg-configuration-files instead of
home-files.
> (list
> `("config/git/config"
> ,(local-file
> (string-append (getenv "HOME")
Just a tip for finer reproducibility of the configuration: it's better
to avoid using environment variables, files outside of the project
directory and other thing, which make code impure/dependening on global
state.
> "/dotfiles/git/config")))))
>
> It started happening recently, so will try to bisect.
--
Best regards,
Andrew Tropin
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 15 Aug 2022 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 248 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.