From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 18 17:08:02 2019 Received: (at 37443-done) by debbugs.gnu.org; 18 Sep 2019 21:08:02 +0000 Received: from localhost ([127.0.0.1]:54904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAhBC-0007r0-34 for submit@debbugs.gnu.org; Wed, 18 Sep 2019 17:08:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAhBA-0007qR-Tr for 37443-done@debbugs.gnu.org; Wed, 18 Sep 2019 17:08:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iAhB5-0007GG-Ry; Wed, 18 Sep 2019 17:07:55 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56626 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iAhB5-0001eg-CP; Wed, 18 Sep 2019 17:07:55 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Konrad Hinsen Subject: Re: [bug#37443] [PATCH] scripts: pull: Add options for generation management References: Date: Wed, 18 Sep 2019 23:07:53 +0200 In-Reply-To: (Konrad Hinsen's message of "Wed, 18 Sep 2019 09:52:18 +0200") Message-ID: <87d0fx71p2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37443-done Cc: 37443-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Konrad, Konrad Hinsen skribis: > * guix/scripts/pull.scm (%options) Add --roll-back, --switch-generation, > --delete-generations > (process-generation-change): New function > (guix-pull): Execute generation management operations > > * doc/guix.texi: Document the generation management operations Cool, applied! I think the main reason it hadn=E2=80=99t been done before is laziness, at = least as far as I=E2=80=99m concerned ;-), so I=E2=80=99m glad you took the time = to do it! > I have been working on a tutorial on using Guix for reproducible > research, which will be part of a MOOC on reproducible research. In > that tutorial, I focus on using "guix environment" with manifest files > for defining computational environemnts. Next, I introduce "guix > describe" and "guix pull -C" to document the version of Guix that has > been used. > > At the very end, I use a roll-back to undo the effect of "guix pull -C". > At that point, I had to introduce "guix package" that I never used > before, and also the concept of profiles that I hadn't needed so far > either. All that just for a roll-back! > > It is of course nice that internally, the same profile management code > is used for Guix and for installed packages, but I don't think that > users should have to know about that. Moreover, users shouldn't have to > memorize the path of the Guix profile either. With the patch I sent, > Guix generations are entirely managed by "guix pull". That makes perfect sense to me. It=E2=80=99s great news that the MOOC will be talking about reproducible research! Thank you, Ludo=E2=80=99.