GNU bug report logs - #68848
New home-dotfiles-service-type creates extra toplevel directories

Previous Next

Package: guix;

Reported by: Janneke Nieuwenhuizen <janneke <at> gnu.org>

Date: Wed, 31 Jan 2024 12:18:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68848 in the body.
You can then email your comments to 68848 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#68848; Package guix. (Wed, 31 Jan 2024 12:18:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Janneke Nieuwenhuizen <janneke <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 31 Jan 2024 12:18:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Janneke Nieuwenhuizen <janneke <at> gnu.org>
To: bug-guix <at> gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>,
 Ludovic Courtès  <ludo <at> gnu.org>
Subject: New home-dotfiles-service-type creates extra toplevel directories
Date: Wed, 31 Jan 2024 13:17:25 +0100
Hi,

When I follow the documentation, and have

    dotfiles/guix/.config/guix/channels.scm

that shows suing tree -a ./dotfiles

    dotfiles
    └── guix
        └── .config
            └── guix
                └── channels.scm

similar to the documentaion, and using

    (service home-dotfiles-service-type
             (home-dotfiles-configuration
               (directories (list "./dotfiles"))))

creates

    ~/guix/.config/guix/channels.scm

an extra toplevel `guix" directory!

What gives?

Greetings,
Janneke

-- 
Janneke Nieuwenhuizen <janneke <at> gnu.org>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com




Information forwarded to bug-guix <at> gnu.org:
bug#68848; Package guix. (Wed, 31 Jan 2024 12:33:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Giacomo <goodoldpaul <at> autistici.org>
To: Janneke Nieuwenhuizen <janneke <at> gnu.org>, bug-guix <at> gnu.org
Cc: ludo <at> gnu.org, sarg <at> sarg.org.ru, 60521 <at> debbugs.gnu.org
Subject: Re: New home-dotfiles-service-type creates extra toplevel directories
Date: Wed, 31 Jan 2024 13:31:52 +0100
[Message part 1 (text/plain, inline)]
Hi Janneke, thank you for the report. I already pointed out this at https://issues.guix.gnu.org/60521 . there was a fix that was removed by a misunderstanding on the requirements of the service since the code contradicts documentation as you pointed out . It should be pretty easy to apply the fix from 60521.

Thank you

Giacomo

Il 31 gennaio 2024 13:17:25 CET, Janneke Nieuwenhuizen <janneke <at> gnu.org> ha scritto:
>Hi,
>
>When I follow the documentation, and have
>
>    dotfiles/guix/.config/guix/channels.scm
>
>that shows suing tree -a ./dotfiles
>
>    dotfiles
>    └── guix
>        └── .config
>            └── guix
>                └── channels.scm
>
>similar to the documentaion, and using
>
>    (service home-dotfiles-service-type
>             (home-dotfiles-configuration
>               (directories (list "./dotfiles"))))
>
>creates
>
>    ~/guix/.config/guix/channels.scm
>
>an extra toplevel `guix" directory!
>
>What gives?
>
>Greetings,
>Janneke
>
>-- 
>Janneke Nieuwenhuizen <janneke <at> gnu.org>  | GNU LilyPond https://LilyPond.org
>Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#68848; Package guix. (Wed, 31 Jan 2024 22:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 68848 <at> debbugs.gnu.org (full text, mbox):

From: paul <goodoldpaul <at> autistici.org>
To: guix-patches <at> gnu.org
Cc: Ludovic Courtès <ludo <at> gnu.org>,
 Sergey Trofimov <sarg <at> sarg.org.ru>, 68848 <at> debbugs.gnu.org, janneke <at> gnu.org
Subject: gnu: home: dotfiles: Avoid creating extra directory in $HOME.
Date: Wed, 31 Jan 2024 23:15:47 +0100
Hello,

I'm sending a patch supposed to fix https://issues.guix.gnu.org/68848  . 
Please let me know if this is ok for you and fixes your issues.


Thank you,


giacomo





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Wed, 06 Mar 2024 22:17:01 GMT) Full text and rfc822 format available.

Notification sent to Janneke Nieuwenhuizen <janneke <at> gnu.org>:
bug acknowledged by developer. (Wed, 06 Mar 2024 22:17:01 GMT) Full text and rfc822 format available.

Message #16 received at 68848-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Giacomo Leidi <goodoldpaul <at> autistici.org>
Cc: paren <at> disroot.org, 68848-done <at> debbugs.gnu.org,
 Andrew Tropin <andrew <at> trop.in>, 68857-done <at> debbugs.gnu.org
Subject: Re: bug#68857: gnu: home: dotfiles: Avoid creating extra directory
 in $HOME.
Date: Wed, 06 Mar 2024 23:15:03 +0100
Hi,

Giacomo Leidi <goodoldpaul <at> autistici.org> skribis:

> The current implementation of the home-dotfiles-service-type contradicts
> the Guix manual (see https://issues.guix.gnu.org/68848 ). This patch
> properly implements both the plain and Stow dotfiles directory layouts.
>
> It does so by refactoring home-dotfiles-configuration adding a new
> packages field to support GNU Stow's users workflow and introducing
> a new layout field to switch between the two directory layouts.
>
> * gnu/home/services/dotfiles (home-dotfiles-configuration): Migrate to
> (gnu services configuration);
> [packages]: new field;
> [layout]: new field;
> (strip-stow-dotfile): new variable;
> (strip-plain-dotfile): new variable;
> (home-dotfiles-configuration->files): use the new fields;
> [directory-contents]: allow for
> selecting a subset of application dotfile directories;
> * doc/guix.texi: document the new layouts.
>
> Change-Id: I2e96037608353e360828290f055ec5271cfdfd48

Applied, thanks again!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 04 Apr 2024 11:24:17 GMT) Full text and rfc822 format available.

This bug report was last modified 113 days ago.

Previous Next


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