GNU bug report logs - #65229
[PATCH 0/2] Add '-q' for 'pull' and 'time-machine'; support loading from pipes

Previous Next

Package: guix-patches;

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

Date: Fri, 11 Aug 2023 15:32:02 UTC

Severity: normal

Tags: patch

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

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: Ludovic Courtès <ludo <at> gnu.org>
Subject: bug#65229: closed (Re: bug#65229: [PATCH 0/2] Add '-q' for 'pull'
 and 'time-machine'; support loading from pipes)
Date: Thu, 17 Aug 2023 17:11:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#65229: [PATCH 0/2] Add '-q' for 'pull' and 'time-machine'; support loading from pipes

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 65229 <at> debbugs.gnu.org.

-- 
65229: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65229
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: Simon Tournier <zimon.toutoune <at> gmail.com>
Cc: 65229-done <at> debbugs.gnu.org
Subject: Re: bug#65229: [PATCH 0/2] Add '-q' for 'pull' and 'time-machine';
 support loading from pipes
Date: Thu, 17 Aug 2023 19:10:05 +0200
Simon Tournier <zimon.toutoune <at> gmail.com> skribis:

> On Thu, 17 Aug 2023 at 12:17, Ludovic Courtès <ludo <at> gnu.org> wrote:
>
>>   • Document the <(echo %default-channels) trick.
>
> LGTM!

Pushed as 9c8098424b5be3abf21144c74162ec39c0c2e799, thanks!

Ludo’.

[Message part 3 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: guix-patches <at> gnu.org
Cc: maurice.bremond <at> inria.fr, Ludovic Courtès <ludo <at> gnu.org>
Subject: [PATCH 0/2] Add '-q' for 'pull' and 'time-machine';
 support loading from pipes
Date: Fri, 11 Aug 2023 17:31:06 +0200
Hello!

These patches address two related issues:

  • The first one adds ‘-q’ to ‘pull’ and ‘time-machine’ to
    instruct them to ignore the user/system ‘channels.scm’ file.
    That way, a command like the following is guaranteed to have
    the same semantics regardless of available config files:

      guix time-machine -q --commit=v1.2.0 -- build hello

    This issue had been raised in
    <https://issues.guix.gnu.org/63726>.

  • The second one lets users do things (in Bash) like:

      guix time-machine -C <(echo %default-channels) -- …

Feedback welcome!

Ludo’.

Ludovic Courtès (2):
  pull, time-machine: Add '-q' to ignore channel files.
  ui: 'load*' accepts /dev/fd/N files pointing to a pipe.

 doc/guix.texi                 | 30 ++++++++++++++++++++++--------
 guix/scripts/pull.scm         | 14 ++++++++++++--
 guix/scripts/time-machine.scm |  7 ++++++-
 guix/ui.scm                   | 16 +++++++++++++++-
 tests/guix-build.sh           |  9 ++++++++-
 5 files changed, 63 insertions(+), 13 deletions(-)


base-commit: 56fddefc6de3b0c1f2ccb9559d86ba08d2e429b9
-- 
2.41.0




This bug report was last modified 1 year and 280 days ago.

Previous Next


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