From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Sep 2019 08:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37443@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1568794875811 (code B ref -1); Wed, 18 Sep 2019 08:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Sep 2019 08:21:15 +0000 Received: from localhost ([127.0.0.1]:53540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAVD9-0000D1-7t for submit@debbugs.gnu.org; Wed, 18 Sep 2019 04:21:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:41203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAVD6-0000Cs-3f for submit@debbugs.gnu.org; Wed, 18 Sep 2019 04:21:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46513) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAVD4-0003vY-46 for guix-patches@gnu.org; Wed, 18 Sep 2019 04:21:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAVD2-0006Zs-9u for guix-patches@gnu.org; Wed, 18 Sep 2019 04:21:10 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:44069) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iAVD1-0006Yj-VE for guix-patches@gnu.org; Wed, 18 Sep 2019 04:21:08 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 49E74220BA; Wed, 18 Sep 2019 04:21:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 18 Sep 2019 04:21:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:date:message-id:mime-version:content-type; s= fm1; bh=h3pOHLlBiQSoIBA/6QYZa3ouxkEQiuijOmKAe6cheFc=; b=c69UVc55 BcBnQu3D8ZxdUA9GbINC9bNKCK1TG06fhlesVFTCKPijiCro7nDY4humRHSU3pmj +NampjC/tCHLtwiSvM5uADWZp5vw4RnsRyS7qK6/odhjjVZ+GhBtgp3P+8xzthWT W/MKaBmJ1ILdYXXbyKxtJRcOv0n3857wLqjxLWeuwSlv2EvgD65qWkwiQvTquI+c jeFHBzx2GqX7AOZAp7ByBdQGW2Y0MRSg7/6TH0DVgYwwSCMBRuicHS3jodO54RXr bgponU/l70rJwWOmmg12qas30cW2goWEl1BPSpqZpdnVLsW4YlUIGaYfCSjQn42A x6cNUWvjBfF/xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=h3pOHLlBiQSoIBA/6QYZa3ouxkEQi uijOmKAe6cheFc=; b=xGOTulEOVtVDhdJ7SDMiV5ad4EFu/gosxgp5ooi8bzP0D U/gHTC6hvRwBeZ68eRwF9NxVn47As9yLwvGDbsbOyOSdm92Rs2lE05G4uO1gHT3g OGwpjuKrkfnnZwWK+wV2KwQTwaohNVa5U/q+FjqQbQ4gPQtJSckXoqw3eYXlbsIf MZZcvKBJWG07syklx995SKzOLUSKEGiTqQxguX0V7oNJd8+2agaaM4ypG5ANEn1x 5lDpZo/zPotir3AwFSTiinpP9ZH9OnLiKwezxkCxsVkqBX66W0BvUfPplIQn8iXm y55wHDmO+a0MYSU9EvotFvGTSjYXXNFMHXSraQQxQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudekgddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddttd enucfhrhhomhepmfhonhhrrgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhsvghn sehfrghsthhmrghilhdrnhgvtheqnecukfhppeekvddruddvfedruddtrdegudenucfrrg hrrghmpehmrghilhhfrhhomhepkhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhl rdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from kh-MacBookPro (lfbn-idf2-1-259-41.w82-123.abo.wanadoo.fr [82.123.10.41]) by mail.messagingengine.com (Postfix) with ESMTPA id A4E17D60062; Wed, 18 Sep 2019 04:21:05 -0400 (EDT) From: Konrad Hinsen Date: Wed, 18 Sep 2019 09:52:18 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.29 X-Spam-Score: 0.6 (/) 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: -0.4 (/) * 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 --- doc/guix.texi | 47 +++++++++++++++++++++++++++++++++++++++++-- guix/scripts/pull.scm | 41 ++++++++++++++++++++++++++++++++++++- 2 files changed, 85 insertions(+), 3 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 55935b3794..27b58b37e5 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -3673,11 +3673,20 @@ Generation 3 Jun 13 2018 23:31:07 (current) @xref{Invoking guix describe, @command{guix describe}}, for other ways to describe the current status of Guix. -This @code{~/.config/guix/current} profile works like any other profile -created by @command{guix package} (@pxref{Invoking guix package}). That +This @code{~/.config/guix/current} profile works exactly like the profiles +created by @command{guix package} (@pxref{Invoking guix package}). That is, you can list generations, roll back to the previous generation---i.e., the previous Guix---and so on: +@example +$ guix pull --roll-back +switched from generation 3 to 2 +$ guix pull --delete-generations=1 +deleting /var/guix/profiles/per-user/charlie/current-guix-1-link +@end example + +You can also use @command{guix package} (@pxref{Invoking guix package}) +to manage the profile by naming it explicitly: @example $ guix package -p ~/.config/guix/current --roll-back switched from generation 3 to 2 @@ -3724,6 +3733,40 @@ is provided, the subset of generations that match @var{pattern}. The syntax of @var{pattern} is the same as with @code{guix package --list-generations} (@pxref{Invoking guix package}). +@item --roll-back +@cindex rolling back +@cindex undoing transactions +@cindex transactions, undoing +Roll back to the previous @dfn{generation} of @file{~/.config/guix/current}---i.e., +undo the last transaction. + +@item --switch-generation=@var{pattern} +@itemx -S @var{pattern} +@cindex generations +Switch to a particular generation defined by @var{pattern}. + +@var{pattern} may be either a generation number or a number prefixed +with ``+'' or ``-''. The latter means: move forward/backward by a +specified number of generations. For example, if you want to return to +the latest generation after @code{--roll-back}, use +@code{--switch-generation=+1}. + +@item --delete-generations[=@var{pattern}] +@itemx -d [@var{pattern}] +When @var{pattern} is omitted, delete all generations except the current +one. + +This command accepts the same patterns as @option{--list-generations}. +When @var{pattern} is specified, delete the matching generations. When +@var{pattern} specifies a duration, generations @emph{older} than the +specified duration match. For instance, @code{--delete-generations=1m} +deletes generations that are more than one month old. + +If the current generation matches, it is @emph{not} deleted. + +Note that deleting generations prevents rolling back to them. +Consequently, this command must be used with care. + @xref{Invoking guix describe}, for a way to display information about the current generation only. diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm index 54bbaddf30..a111f3616d 100644 --- a/guix/scripts/pull.scm +++ b/guix/scripts/pull.scm @@ -38,7 +38,8 @@ #:use-module (guix git) #:use-module (git) #:use-module (gnu packages) - #:use-module ((guix scripts package) #:select (build-and-use-profile)) + #:use-module ((guix scripts package) #:select (build-and-use-profile + delete-matching-generations)) #:use-module ((gnu packages base) #:select (canonical-package)) #:use-module (gnu packages guile) #:use-module ((gnu packages bootstrap) @@ -91,6 +92,14 @@ Download and deploy the latest version of Guix.\n")) (display (G_ " -l, --list-generations[=PATTERN] list generations matching PATTERN")) + (display (G_ " + --roll-back roll back to the previous generation")) + (display (G_ " + -d, --delete-generations[=PATTERN] + delete generations matching PATTERN")) + (display (G_ " + -S, --switch-generation=PATTERN + switch to a generation matching PATTERN")) (display (G_ " -p, --profile=PROFILE use PROFILE instead of ~/.config/guix/current")) (display (G_ " @@ -120,6 +129,18 @@ Download and deploy the latest version of Guix.\n")) (lambda (opt name arg result) (cons `(query list-generations ,arg) result))) + (option '("roll-back") #f #f + (lambda (opt name arg result) + (cons '(generation roll-back) + result))) + (option '(#\S "switch-generation") #t #f + (lambda (opt name arg result) + (cons `(generation switch ,arg) + result))) + (option '(#\d "delete-generations") #f #t + (lambda (opt name arg result) + (cons `(generation delete ,arg) + result))) (option '(#\N "news") #f #f (lambda (opt name arg result) (cons '(query display-news) result))) @@ -498,6 +519,22 @@ list of package changes."))))) (display-profile-news profile #:current-is-newer? #t)))) +(define (process-generation-change opts profile) + "Process a request to change the current generation (roll-back, switch, delete)." + (unless (assoc-ref opts 'dry-run?) + (match (assoc-ref opts 'generation) + (('roll-back) + (with-store store + (roll-back* store profile))) + (('switch pattern) + (let ((number (relative-generation-spec->number profile pattern))) + (if number + (switch-to-generation* profile number) + (leave (G_ "cannot switch to generation '~a'~%") pattern)))) + (('delete pattern) + (with-store store + (delete-matching-generations store profile pattern)))))) + (define (channel-list opts) "Return the list of channels to use. If OPTS specify a channel file, channels are read from there; otherwise, if ~/.config/guix/channels.scm @@ -565,6 +602,8 @@ Use '~/.config/guix/channels.scm' instead.")) (profile (or (assoc-ref opts 'profile) %current-profile))) (cond ((assoc-ref opts 'query) (process-query opts profile)) + ((assoc-ref opts 'generation) + (process-generation-change opts profile)) (else (with-store store (ensure-default-profile) -- 2.22.1 From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Sep 2019 08:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37443@debbugs.gnu.org Received: via spool by 37443-submit@debbugs.gnu.org id=B37443.15687965413492 (code B ref 37443); Wed, 18 Sep 2019 08:49:02 +0000 Received: (at 37443) by debbugs.gnu.org; 18 Sep 2019 08:49:01 +0000 Received: from localhost ([127.0.0.1]:53562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAVe0-0000uF-Fp for submit@debbugs.gnu.org; Wed, 18 Sep 2019 04:49:01 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:41679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAVdx-0000u1-Kf for 37443@debbugs.gnu.org; Wed, 18 Sep 2019 04:48:58 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1724F20EB0; Wed, 18 Sep 2019 04:48:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 18 Sep 2019 04:48:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=Kui3T8lEsDfjt+JWksZBcR3D3S x+V6RUjsr4C0UQvgs=; b=LQ9Scjm960lpZYINpYnf6Ziuq99gn/R0sce9OLKR97 XqBkDSgWVmq7+YY2AXcRVtbGOu5hVblZGGWatD0ZysRq/UJvBzCf0TpUFYwKc1Cd 2QXuq/Ko8+DsqUNpfiU9RMHhBcXX2+u5cNGnkNyFnliUxADa3KYRFGoHas0/YNiF HJGJo29XJtEu4etqtTTlQgMQu+V83aWHbotvh5RhNDb5/xAgQS7UOsqrvmjeUdna BgqHZQCRg4F1dRsDA1awh77NNCgA4cIZCHmWftDorhDeWU+NsdnGSQvXzX6s5jAz hLMFuYsyjv9nXY/iSR57QESZsTzb6jau5I7PNALXJ6sQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Kui3T8 lEsDfjt+JWksZBcR3D3Sx+V6RUjsr4C0UQvgs=; b=hjn342hx3sfgNfxWY0Yrio Ingn4ZmsXAOvVLzYKVhqcLzz0WcSGQ85956YkDrL8U4O0EOhslkM64jb768bymOw 0sYv278kwqRd6yZjGd+cnv7slIkdzJVYkK/wAKnoKdi4l1pEjpd3JrFb17lH8DL/ L3UYem2B50paD6WXyAxp5dMafFCZqQ+bWVvTXr7vZh53MvDoA4r40jsMuQuzm3bm al8hq/RLdfmXUJH9V0xxdfP7eDqQhrL0fUSD3DMB3ThWkuLub14cjRJTZeIErpm4 qBaIBuTT6XOieafUPNkL3t/MrvvTxF3CmLCvQN7BvVMGZeJV3x9bFjHUAQA7/D1A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudekgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhffkfggtgesthdtredttd dttdenucfhrhhomhepmfhonhhrrgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhs vghnsehfrghsthhmrghilhdrnhgvtheqnecukfhppeekvddruddvfedruddtrdegudenuc frrghrrghmpehmrghilhhfrhhomhepkhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgr ihhlrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from khs-macbook.home (lfbn-idf2-1-259-41.w82-123.abo.wanadoo.fr [82.123.10.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 6180ED60057; Wed, 18 Sep 2019 04:48:51 -0400 (EDT) From: Konrad Hinsen In-Reply-To: References: Date: Wed, 18 Sep 2019 10:48:50 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -1.7 (-) Hi everyone, let me add an explanation as for why I propose these additions to guix pull. 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". Cheers, Konrad From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Sep 2019 16:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Konrad Hinsen Cc: 37443@debbugs.gnu.org Received: via spool by 37443-submit@debbugs.gnu.org id=B37443.1568824446939 (code B ref 37443); Wed, 18 Sep 2019 16:35:02 +0000 Received: (at 37443) by debbugs.gnu.org; 18 Sep 2019 16:34:06 +0000 Received: from localhost ([127.0.0.1]:54769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAcu5-0000F4-SJ for submit@debbugs.gnu.org; Wed, 18 Sep 2019 12:34:06 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:36634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAcu4-0000Eb-49 for 37443@debbugs.gnu.org; Wed, 18 Sep 2019 12:34:04 -0400 Received: by mail-qt1-f194.google.com with SMTP id o12so512561qtf.3 for <37443@debbugs.gnu.org>; Wed, 18 Sep 2019 09:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cJU7cA0OvNk2JjifeOY4eZiW4VEjIrPkLOi1oapvZO4=; b=GZ18s5zUXc4a1QjVYCatgyXmMX/nNOVBQfcc47OFGitQzrCNTBQLVLnqLjhrq+dbHN LxcCZKq32iqCCdQVQe2w7Wr19Z8qtVl/7cMA3lK7C/a9qYDtGuUoucCqz/aOKw/k+4xX co6wSyWMTrB6es9acSDdaqD3v9oH6W3baC5S51kD1mAbL8aLm40bp145CBfqVF1an/lc kRLvnS6EStfSUXDvIYoCZ7+QIfSOBoo5Sh8xOCRhsO6v0UBDCQoxv8h74TfTU5YY6Hrw kUlGy6yz7rENnLqJw431rQSFl9lmiGWPTLGQWauUE4sJ6nFgFGRkx1HvbhFcocwJPHNX xRsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cJU7cA0OvNk2JjifeOY4eZiW4VEjIrPkLOi1oapvZO4=; b=fxfsz2aXvRqyBnxwm9kA+Lh4QJilBJMWu+qzavZ5F3hOEX92hSchC5jmAqnNRwL0Gb BdNw+fRcAbOD4+kLLiPVlSnXLyQPbRchbX4H2Ty3riAx3VAtV747WIlQk+Z+ya8cIH5O Ltq5gIX1HcILvJ9EpJT+gnnxYRTzINMpNZj8AEvTjZt8x2vzMlTAdm1rgTO0mQeLicfm 01Q/9gqUP03PyswKqAnt3r1x2r0Vk2HurpuUB64zu8wEXD4j6CAJWcgwJoHuNwhDykMe tJ/Gyk0ENTVs2Q16rCTlevtyygNjXcLLqlKObcyppZ03Zf6LqRCyB2NK4HQg0fzZf4o8 wckQ== X-Gm-Message-State: APjAAAVtmGDH093rtVV6Tysu+3xWtAWQgDgVQO3OQ3SB1pMmcScc/SXr AiP8i9rls2HKBwko0xUoOFeWmr6VAKMpkp9x/7M= X-Google-Smtp-Source: APXvYqzGXeQuxp4TPzftsSS93FGQKwiHI04osMF5vXOLmPqZbioK3IwV82XnpcMbNL6qGIOSy+G6K9KcbgHXm58LKPM= X-Received: by 2002:ac8:65c5:: with SMTP id t5mr5032522qto.217.1568824438644; Wed, 18 Sep 2019 09:33:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: zimoun Date: Wed, 18 Sep 2019 18:33:47 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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: -1.0 (-) Dear, Naive question: why not merge the two default profiles in only one default profile? `guix pull` uses the default ~/.config/guix/current `guix package` uses the default ~/.guix-profile Does it make sense to remove one of them? And that fixes the issue of UI. All the best, simon From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Sep 2019 20:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 37443@debbugs.gnu.org Received: via spool by 37443-submit@debbugs.gnu.org id=B37443.156883731922971 (code B ref 37443); Wed, 18 Sep 2019 20:09:02 +0000 Received: (at 37443) by debbugs.gnu.org; 18 Sep 2019 20:08:39 +0000 Received: from localhost ([127.0.0.1]:54876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAgFj-0005yM-Co for submit@debbugs.gnu.org; Wed, 18 Sep 2019 16:08:39 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:39181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAgFf-0005xw-Dl for 37443@debbugs.gnu.org; Wed, 18 Sep 2019 16:08:35 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 4869C21EEB; Wed, 18 Sep 2019 16:08:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 18 Sep 2019 16:08:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=2XXbBwoxY+JXGtvCXvxJkdh3My PN+Za8CmCfEs3eBmY=; b=R2ocb7Qs0/41gsymcA7GQlFH49zj/cnkmr3mvar3e2 z6Zf/B043ZbEEOeXxi/5kel5G3foBecH2hM7YezUCnjSKzb86JEkw+t9gLRe7q+S 1Ki+7LoFNjlYAyCJiOEJLez576YaqpOCfUMxYDK0Wflsr/178/gwzq879sctLnzn YZc9eGvRX0NtShr5qsKJZ0Ij/rE1B4jMcLgbORQ0pzim9TuxeRpPQeUztKyLTmyt mLe7KCSLH22uJM+jHVhHwj3nK3iJkpJ1oc2bTPcLN7zwTsSQmow98+HHYXOv0Ba9 Ix3S6RUSLOfiajWK3mYxlIvgF+1vDki71p/Ge8fl/eqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2XXbBw oxY+JXGtvCXvxJkdh3MyPN+Za8CmCfEs3eBmY=; b=NW2OOT3WQv0b4fvWvRAyJ9 A32zmdMsYcLJGAzUi+x8FaEtrKOpAnQpNKLEADLpelj9Q5Z1D+7f0skNCiUpjdKv 2HVvlAQYw/t0Qdj2bQZGddpJ0cC0iGbOIdh5mXwRhfR2lSXk7GuxHKPZQ03+JOJu Gq6sUbGLbHbBoIcjsxSEDE3eKFqbgje5meF+A5p3gxgElYDT7R/o2Agnsv7mSQpi aRJJwGy6U8F8hWINCitZe8MyaMKWWucKitS2htw8lCQpOyYkW1AmetftzjCvC9PC 3utCd+P+eQUrh+6a/pWYVr7u7+MmnkdYF7bNYcswSl6nZZQMauPfDbJSpt/SvgbA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudekgddugeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffffkgggtsehttdertd dttddtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhn shgvnhesfhgrshhtmhgrihhlrdhnvghtqeenucfkphepkedvrdduvdefrddutddrgedune curfgrrhgrmhepmhgrihhlfhhrohhmpehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhm rghilhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from khs-macbook.home (lfbn-idf2-1-259-41.w82-123.abo.wanadoo.fr [82.123.10.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 4C76880068; Wed, 18 Sep 2019 16:08:28 -0400 (EDT) From: Konrad Hinsen In-Reply-To: References: Date: Wed, 18 Sep 2019 22:08:26 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -1.7 (-) Hi Simon, > Naive question: why not merge the two default profiles in only one > default profile? > > `guix pull` uses the default ~/.config/guix/current > `guix package` uses the default ~/.guix-profile > > Does it make sense to remove one of them? I am not sure if it could be done, but I am rather sure that I wouldn't want that. Case study: I want to install one package from a specific Guix commit in the past: - guix pull -C ... creates a new generation - guix package install ... creates another new generation Now I cannot undo the "guix pull" without also removing the package that I installed from that specific commit! Cheers, Konrad From unknown Tue Jun 17 01:43:58 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Konrad Hinsen Subject: bug#37443: closed (Re: [bug#37443] [PATCH] scripts: pull: Add options for generation management) Message-ID: References: <87d0fx71p2.fsf@gnu.org> X-Gnu-PR-Message: they-closed 37443 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 37443@debbugs.gnu.org Date: Wed, 18 Sep 2019 21:09:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1568840942-30306-1" This is a multi-part message in MIME format... ------------=_1568840942-30306-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #37443: [PATCH] scripts: pull: Add options for generation management 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 37443@debbugs.gnu.org. --=20 37443: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D37443 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1568840942-30306-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1568840942-30306-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Sep 2019 08:21:15 +0000 Received: from localhost ([127.0.0.1]:53540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAVD9-0000D1-7t for submit@debbugs.gnu.org; Wed, 18 Sep 2019 04:21:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:41203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAVD6-0000Cs-3f for submit@debbugs.gnu.org; Wed, 18 Sep 2019 04:21:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46513) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAVD4-0003vY-46 for guix-patches@gnu.org; Wed, 18 Sep 2019 04:21:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAVD2-0006Zs-9u for guix-patches@gnu.org; Wed, 18 Sep 2019 04:21:10 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:44069) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iAVD1-0006Yj-VE for guix-patches@gnu.org; Wed, 18 Sep 2019 04:21:08 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 49E74220BA; Wed, 18 Sep 2019 04:21:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 18 Sep 2019 04:21:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:date:message-id:mime-version:content-type; s= fm1; bh=h3pOHLlBiQSoIBA/6QYZa3ouxkEQiuijOmKAe6cheFc=; b=c69UVc55 BcBnQu3D8ZxdUA9GbINC9bNKCK1TG06fhlesVFTCKPijiCro7nDY4humRHSU3pmj +NampjC/tCHLtwiSvM5uADWZp5vw4RnsRyS7qK6/odhjjVZ+GhBtgp3P+8xzthWT W/MKaBmJ1ILdYXXbyKxtJRcOv0n3857wLqjxLWeuwSlv2EvgD65qWkwiQvTquI+c jeFHBzx2GqX7AOZAp7ByBdQGW2Y0MRSg7/6TH0DVgYwwSCMBRuicHS3jodO54RXr bgponU/l70rJwWOmmg12qas30cW2goWEl1BPSpqZpdnVLsW4YlUIGaYfCSjQn42A x6cNUWvjBfF/xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=h3pOHLlBiQSoIBA/6QYZa3ouxkEQi uijOmKAe6cheFc=; b=xGOTulEOVtVDhdJ7SDMiV5ad4EFu/gosxgp5ooi8bzP0D U/gHTC6hvRwBeZ68eRwF9NxVn47As9yLwvGDbsbOyOSdm92Rs2lE05G4uO1gHT3g OGwpjuKrkfnnZwWK+wV2KwQTwaohNVa5U/q+FjqQbQ4gPQtJSckXoqw3eYXlbsIf MZZcvKBJWG07syklx995SKzOLUSKEGiTqQxguX0V7oNJd8+2agaaM4ypG5ANEn1x 5lDpZo/zPotir3AwFSTiinpP9ZH9OnLiKwezxkCxsVkqBX66W0BvUfPplIQn8iXm y55wHDmO+a0MYSU9EvotFvGTSjYXXNFMHXSraQQxQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudekgddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddttd enucfhrhhomhepmfhonhhrrgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhsvghn sehfrghsthhmrghilhdrnhgvtheqnecukfhppeekvddruddvfedruddtrdegudenucfrrg hrrghmpehmrghilhhfrhhomhepkhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhl rdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from kh-MacBookPro (lfbn-idf2-1-259-41.w82-123.abo.wanadoo.fr [82.123.10.41]) by mail.messagingengine.com (Postfix) with ESMTPA id A4E17D60062; Wed, 18 Sep 2019 04:21:05 -0400 (EDT) From: Konrad Hinsen To: guix-patches@gnu.org Subject: [PATCH] scripts: pull: Add options for generation management Date: Wed, 18 Sep 2019 09:52:18 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.29 X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit 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: -0.4 (/) * 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 --- doc/guix.texi | 47 +++++++++++++++++++++++++++++++++++++++++-- guix/scripts/pull.scm | 41 ++++++++++++++++++++++++++++++++++++- 2 files changed, 85 insertions(+), 3 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 55935b3794..27b58b37e5 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -3673,11 +3673,20 @@ Generation 3 Jun 13 2018 23:31:07 (current) @xref{Invoking guix describe, @command{guix describe}}, for other ways to describe the current status of Guix. -This @code{~/.config/guix/current} profile works like any other profile -created by @command{guix package} (@pxref{Invoking guix package}). That +This @code{~/.config/guix/current} profile works exactly like the profiles +created by @command{guix package} (@pxref{Invoking guix package}). That is, you can list generations, roll back to the previous generation---i.e., the previous Guix---and so on: +@example +$ guix pull --roll-back +switched from generation 3 to 2 +$ guix pull --delete-generations=1 +deleting /var/guix/profiles/per-user/charlie/current-guix-1-link +@end example + +You can also use @command{guix package} (@pxref{Invoking guix package}) +to manage the profile by naming it explicitly: @example $ guix package -p ~/.config/guix/current --roll-back switched from generation 3 to 2 @@ -3724,6 +3733,40 @@ is provided, the subset of generations that match @var{pattern}. The syntax of @var{pattern} is the same as with @code{guix package --list-generations} (@pxref{Invoking guix package}). +@item --roll-back +@cindex rolling back +@cindex undoing transactions +@cindex transactions, undoing +Roll back to the previous @dfn{generation} of @file{~/.config/guix/current}---i.e., +undo the last transaction. + +@item --switch-generation=@var{pattern} +@itemx -S @var{pattern} +@cindex generations +Switch to a particular generation defined by @var{pattern}. + +@var{pattern} may be either a generation number or a number prefixed +with ``+'' or ``-''. The latter means: move forward/backward by a +specified number of generations. For example, if you want to return to +the latest generation after @code{--roll-back}, use +@code{--switch-generation=+1}. + +@item --delete-generations[=@var{pattern}] +@itemx -d [@var{pattern}] +When @var{pattern} is omitted, delete all generations except the current +one. + +This command accepts the same patterns as @option{--list-generations}. +When @var{pattern} is specified, delete the matching generations. When +@var{pattern} specifies a duration, generations @emph{older} than the +specified duration match. For instance, @code{--delete-generations=1m} +deletes generations that are more than one month old. + +If the current generation matches, it is @emph{not} deleted. + +Note that deleting generations prevents rolling back to them. +Consequently, this command must be used with care. + @xref{Invoking guix describe}, for a way to display information about the current generation only. diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm index 54bbaddf30..a111f3616d 100644 --- a/guix/scripts/pull.scm +++ b/guix/scripts/pull.scm @@ -38,7 +38,8 @@ #:use-module (guix git) #:use-module (git) #:use-module (gnu packages) - #:use-module ((guix scripts package) #:select (build-and-use-profile)) + #:use-module ((guix scripts package) #:select (build-and-use-profile + delete-matching-generations)) #:use-module ((gnu packages base) #:select (canonical-package)) #:use-module (gnu packages guile) #:use-module ((gnu packages bootstrap) @@ -91,6 +92,14 @@ Download and deploy the latest version of Guix.\n")) (display (G_ " -l, --list-generations[=PATTERN] list generations matching PATTERN")) + (display (G_ " + --roll-back roll back to the previous generation")) + (display (G_ " + -d, --delete-generations[=PATTERN] + delete generations matching PATTERN")) + (display (G_ " + -S, --switch-generation=PATTERN + switch to a generation matching PATTERN")) (display (G_ " -p, --profile=PROFILE use PROFILE instead of ~/.config/guix/current")) (display (G_ " @@ -120,6 +129,18 @@ Download and deploy the latest version of Guix.\n")) (lambda (opt name arg result) (cons `(query list-generations ,arg) result))) + (option '("roll-back") #f #f + (lambda (opt name arg result) + (cons '(generation roll-back) + result))) + (option '(#\S "switch-generation") #t #f + (lambda (opt name arg result) + (cons `(generation switch ,arg) + result))) + (option '(#\d "delete-generations") #f #t + (lambda (opt name arg result) + (cons `(generation delete ,arg) + result))) (option '(#\N "news") #f #f (lambda (opt name arg result) (cons '(query display-news) result))) @@ -498,6 +519,22 @@ list of package changes."))))) (display-profile-news profile #:current-is-newer? #t)))) +(define (process-generation-change opts profile) + "Process a request to change the current generation (roll-back, switch, delete)." + (unless (assoc-ref opts 'dry-run?) + (match (assoc-ref opts 'generation) + (('roll-back) + (with-store store + (roll-back* store profile))) + (('switch pattern) + (let ((number (relative-generation-spec->number profile pattern))) + (if number + (switch-to-generation* profile number) + (leave (G_ "cannot switch to generation '~a'~%") pattern)))) + (('delete pattern) + (with-store store + (delete-matching-generations store profile pattern)))))) + (define (channel-list opts) "Return the list of channels to use. If OPTS specify a channel file, channels are read from there; otherwise, if ~/.config/guix/channels.scm @@ -565,6 +602,8 @@ Use '~/.config/guix/channels.scm' instead.")) (profile (or (assoc-ref opts 'profile) %current-profile))) (cond ((assoc-ref opts 'query) (process-query opts profile)) + ((assoc-ref opts 'generation) + (process-generation-change opts profile)) (else (with-store store (ensure-default-profile) -- 2.22.1 ------------=_1568840942-30306-1-- From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Sep 2019 21:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: Konrad Hinsen , 37443@debbugs.gnu.org Received: via spool by 37443-submit@debbugs.gnu.org id=B37443.156884154231576 (code B ref 37443); Wed, 18 Sep 2019 21:20:01 +0000 Received: (at 37443) by debbugs.gnu.org; 18 Sep 2019 21:19:02 +0000 Received: from localhost ([127.0.0.1]:54911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAhLq-0008DE-6X for submit@debbugs.gnu.org; Wed, 18 Sep 2019 17:19:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41377) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAhLo-0008Cg-SK for 37443@debbugs.gnu.org; Wed, 18 Sep 2019 17:19:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iAhLj-0003R0-Mv; Wed, 18 Sep 2019 17:18:55 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56636 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iAhLj-0002bc-5V; Wed, 18 Sep 2019 17:18:55 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Wed, 18 Sep 2019 23:18:53 +0200 In-Reply-To: (zimoun's message of "Wed, 18 Sep 2019 18:33:47 +0200") Message-ID: <87y2yl5mma.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-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 (---) Hello zimoun! zimoun skribis: > Naive question: why not merge the two default profiles in only one > default profile? > > `guix pull` uses the default ~/.config/guix/current > `guix package` uses the default ~/.guix-profile > > Does it make sense to remove one of them? Nope! :-) Technically, it could work of course, since both are just regular profiles. The problem is that rolling back your package set would also potentially roll back the very tool you=E2=80=99re using to roll back. There could be problems if, say, the format of ~/.guix-profile/manifest changed, and you end up with a =E2=80=98guix=E2=80=99 that cannot read it because it=E2= =80=99s too old, things like that. More importantly, I think we really want the tool and the user=E2=80=99s pa= ckage set to evolve on different axes. It=E2=80=99s important to be able to upgr= ade or rollback one without touching the other. Now, it=E2=80=99s true that having two different profiles appears to be har= d to grasp for newcomers, as Ricardo was saying just now on IRC. HTH! Ludo=E2=80=99. From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 06:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156887484232595 (code D ref 37443); Thu, 19 Sep 2019 06:35:01 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 06:34:02 +0000 Received: from localhost ([127.0.0.1]:55068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAq0v-0008Tf-UY for submit@debbugs.gnu.org; Thu, 19 Sep 2019 02:34:02 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:54601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAq0u-0008TB-34 for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 02:34:00 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 4ED6C792; Thu, 19 Sep 2019 02:33:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 19 Sep 2019 02:33:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= +H5rG03N9/FkTB0XoPcAuy7OjwZvFnXihnJa2U0Mv/A=; b=hOhq0FG3g2sbtzk9 oGXTYLL8obzAYFtpq74EVcehPF3tIRAKUtaUZ+XN74oDWi+JelXzvgVMT+KM11QS zZM5pweW5w8mDgCkrkDPAEaCT0qClcfL2wQvHOjFmYybooBVAk2t0/6gzJKP7GUf 5g2Oa/DCA577qzEELtc7P6g8FA8FsigtXJmLQTyMKs2kHH9baq66zAm7WD01E7z9 RXbPLYFskb/AXpQZqXt04tUg7tdompEcu3nxhnOWBjaRhSbbVvQVOXAsmxGO0MSY 1oaMuLkGG5ttOrRD2t8H4FkskV+T5WRRngQ0nevqo8MGcQ2ND0IQWOz/+UJ9gZ5/ CA2Z3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=+H5rG03N9/FkTB0XoPcAuy7OjwZvFnXihnJa2U0Mv /A=; b=uIi8743m4VhRc1OtwcMVWjFVTqphdXdkWgWMBP6tronedtCT6qwBpusEG qbFeLAvV1R7MxnCcy3oOJrGnEW5o4gqLkF/dJrqf5ciyrQVYV8oHjlliKA96abaf 4QCod/qsXV1yJPN2URDTBAet4uoMfNEKrHE5BW7SsLqVzHQU697VU5/1E5z20MtQ cn3KrmkxFc54ePNTRIIVICz1KGRw/K1bmCAaO/BptV/8cBMJNSfDIQiNTuovGhDg Msz/aKG2pXiztwyofyx4dGPL8zx8AtaoFjG6zTzVCjX7xSABIhCyqEgCI9hLZ4D8 pzy6yqLj63DIJsQHY0jokRaZqw+cg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgfgsehtqhertddttdejnecuhfhrohhmpefmohhnrhgr ugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvg htqeenucfkphepkedvrdduvdefrddutddrgedunecurfgrrhgrmhepmhgrihhlfhhrohhm pehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvthenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from ordinateur-de-catherine--konrad.home (lfbn-idf2-1-259-41.w82-123.abo.wanadoo.fr [82.123.10.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 1BCC480060; Thu, 19 Sep 2019 02:33:53 -0400 (EDT) From: Konrad Hinsen In-Reply-To: <87d0fx71p2.fsf@gnu.org> References: <87d0fx71p2.fsf@gnu.org> Date: Thu, 19 Sep 2019 08:33:51 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) 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: -1.7 (-) Hi Ludo, > Cool, applied! Great, thanks! > It=E2=80=99s great news that the MOOC will be talking about reproducible > research! That's what it has been doing for a while. The news is that it will contain a tutorial on using Guix. In parallel with the same task (defining/communicating/restoring a software environment) using a more heavyweight toolchain: Debian + debuerreotype + Docker. > Now, it=E2=80=99s true that having two different profiles appears to be h= ard > to grasp for newcomers, as Ricardo was saying just now on IRC. I suspect that the whole idea of profiles (as distinct from the user account) is not obvious. If I ever extend my tutorial to include profiles, I would probably introduce them as persistent environments. And since I am in criticizing mood, the whole Guix management API suffers from bad naming. Consider "guix pull -l". What does it pull? Or "guix package =E2=80=93-roll-back", which doesn't roll back a package but a profile. Guix is following the lead of git whose command line API makes sense only to people who have seen it grow historically. Konrad. From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 08:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Konrad Hinsen Cc: 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156888125710580 (code D ref 37443); Thu, 19 Sep 2019 08:21:01 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 08:20:57 +0000 Received: from localhost ([127.0.0.1]:55115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iArgP-0002ka-0i for submit@debbugs.gnu.org; Thu, 19 Sep 2019 04:20:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iArgN-0002kM-86 for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 04:20:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iArgI-0002xm-1W; Thu, 19 Sep 2019 04:20:50 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=56060 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iArgG-0001qU-Fx; Thu, 19 Sep 2019 04:20:49 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87d0fx71p2.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Jour du Travail de =?UTF-8?Q?l'Ann=C3=A9e?= 227 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 19 Sep 2019 10:20:46 +0200 In-Reply-To: (Konrad Hinsen's message of "Thu, 19 Sep 2019 08:33:51 +0200") Message-ID: <87v9toy9wh.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-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 (---) Hello, Konrad Hinsen skribis: >> Cool, applied! > > Great, thanks! > >> It=E2=80=99s great news that the MOOC will be talking about reproducible >> research! Uh, I meant: it=E2=80=99s great news that the MOOC on reproducible research= will be talking about Guix. > That's what it has been doing for a while. The news is that it will > contain a tutorial on using Guix. In parallel with the same task > (defining/communicating/restoring a software environment) using > a more heavyweight toolchain: Debian + debuerreotype + Docker. I see. >> Now, it=E2=80=99s true that having two different profiles appears to be = hard >> to grasp for newcomers, as Ricardo was saying just now on IRC. > > I suspect that the whole idea of profiles (as distinct from the user > account) is not obvious. If I ever extend my tutorial to include > profiles, I would probably introduce them as persistent environments. Yeah, that=E2=80=99s what they are, so maybe it=E2=80=99s simpler to presen= t profiles as persistent environments. > And since I am in criticizing mood, the whole Guix management API > suffers from bad naming. Consider "guix pull -l". What does it pull? Or > "guix package =E2=80=93-roll-back", which doesn't roll back a package but= a > profile. Guix is following the lead of git whose command line API makes > sense only to people who have seen it grow historically. What would you suggest? =E2=80=9Cguix log=E2=80=9D, =E2=80=9Cguix roll-bac= k=E2=80=9D? Thanks, Ludo=E2=80=99. From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 09:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Konrad Hinsen , 37443@debbugs.gnu.org Received: via spool by 37443-submit@debbugs.gnu.org id=B37443.156888374322790 (code B ref 37443); Thu, 19 Sep 2019 09:03:01 +0000 Received: (at 37443) by debbugs.gnu.org; 19 Sep 2019 09:02:23 +0000 Received: from localhost ([127.0.0.1]:55151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAsKU-0005vW-Qa for submit@debbugs.gnu.org; Thu, 19 Sep 2019 05:02:23 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:42534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAsKS-0005vJ-NT for 37443@debbugs.gnu.org; Thu, 19 Sep 2019 05:02:20 -0400 Received: by mail-qk1-f171.google.com with SMTP id f16so2549270qkl.9 for <37443@debbugs.gnu.org>; Thu, 19 Sep 2019 02:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G8cKwbic+Ge+UQ38hMCtDyMSfM5+ojsHHYCzQejiPfo=; b=XWSy1grHg4wG2yWl6J2Tm+L0wS/Pl5SuL+1nltcyWtP9T1eG9RUvuBtS0MBsA3BJI9 enWWpCVM45KO6wZwMOHXkKyJ+5kj+RAjKeS8Gyj3gbKSaJXkWDRDNrF7E5HJh5jnOolR dIpgK0wl53SGi8VwLuvUlGfHg52ooKscPODfOQJJDg4O/6UdT8WpsSZoNJ1pM/3yLprs HTOsxdxim5yKYJra3wnDR8nNtr2tzIb5/SUwWtZrBq79s7Vl4tG8bhkwOegjZhmT9/I0 yqw5x6LxSu6/pinq8HWf6k6ABi2JdWW40AHAFfcCvytVOylntbMa2G70KMzfevTBdXZ8 h+DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G8cKwbic+Ge+UQ38hMCtDyMSfM5+ojsHHYCzQejiPfo=; b=RApJ2Kc4hvUPqhWdePNc6wzQ8y3L+hIYPTEk43GIeKA47wVR3HErLB7DSr+7rIUsfg jFnvOjNTbJ/8obmn4QqGknU2PxZrridtQL+rcfQiyHgfQHbByJYlQ1xEEyZYY7jV8Ipw tvbDUasAiqoL2vsY7zbFEG8Hjk72MgEW1ALetHV/PCp7h1hFBEHt5+xUhN/tMbITm3ls 9wx3IgS9El9BOiXKu9zt6O5o32kKXx44GzeDaI4EwqkQLqruOK0B3OaXLn9FksAjY2aa qw3peEVe5DLCJXF97AYbMNaT16UUzpdcYBmhqoifxJNHrm6DgiOJ/L18zu9weOuxywD8 mA2g== X-Gm-Message-State: APjAAAVeqdQB5pMI13fRlLfhbJV4fXlh55l67qBexR42lf6LpwZ7on2P 2XBwCDl/c5uw0BFQK17XOXzt0wjwKWQtWWZUtpc= X-Google-Smtp-Source: APXvYqxNkkDbXZdidoWzk1v8BVYEGLfz1D84xtLxiNXIe6WGc91DP6G7Gm8W7vICr6vatYmqbZwjPcFrkZmoi2ZL+aE= X-Received: by 2002:a37:9f93:: with SMTP id i141mr1610274qke.304.1568883735178; Thu, 19 Sep 2019 02:02:15 -0700 (PDT) MIME-Version: 1.0 References: <87y2yl5mma.fsf@gnu.org> In-Reply-To: <87y2yl5mma.fsf@gnu.org> From: zimoun Date: Thu, 19 Sep 2019 11:02:03 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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: -1.0 (-) Hi Ludo and Konrad, Thank you for explaining. I got the point. Thanks, simon From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 09:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Konrad Hinsen , 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156888612326585 (code D ref 37443); Thu, 19 Sep 2019 09:43:02 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 09:42:03 +0000 Received: from localhost ([127.0.0.1]:55167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAsws-0006uj-Mw for submit@debbugs.gnu.org; Thu, 19 Sep 2019 05:42:03 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:44177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAswr-0006uF-75 for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 05:42:01 -0400 Received: by mail-qt1-f195.google.com with SMTP id u40so3365695qth.11 for <37443-done@debbugs.gnu.org>; Thu, 19 Sep 2019 02:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hWibLzSQ2NWdq1AbOwijmlHYGOcLlnZyvLA5PXdNuj0=; b=Uq6wot0Ms2WzewcvJixaAILl+c3dp3NWHq1gS4/lpAbWmBmtRNKBi9+Ol0859DEEH1 9vssUYYKt/GHAavbxuNTImEjWScV6L/tRlmh3APZeb+9w2XTS0hnXziOSwjcwt6WbjwL 0qKjHIdlfKxZYYCMpeF8Gkr4LJ9NPpocE4RDt+USRUbZzo+8L9VeNVzDUbxZeAkIc946 7nHDLtes77RGZp+0/piPhGCS2bluuDnhXOq3wZP56KV8wAOqh8ws85jnjbrkcSa57iCx 5GUDlqZYVbBiMd9rnqtJbBpDBtI83H9xG0yaQF3ggXziMRRFg1MLmbIFC93lZLzn6e/N 0RaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hWibLzSQ2NWdq1AbOwijmlHYGOcLlnZyvLA5PXdNuj0=; b=l74YVrFAqEoIdh9JIC5fBXYwZcF0zpvb/XyDz1W0YlDqVNfjY9eMAsu39aaVJayYz7 8Ru7O0HZWzMn+NFFgvdDFp1+IehesBPIfQrn40HCTyBZeygaNxw6bON2epNnWERZmz7e mgXV38FLu+niXJ2Uf6W8uMIivVN1S5ib+FW2qU+Ie2EJIeOteDyvSqCGU7RdEf/p0WML GCRCSOWA4gOwW5YIBjumwkNugIIIBeYryOVxWYkfwXrb2MHeioAtoh/xAYOSPvwKn0d0 /qt3XWowNLsfgsqZJgQWNg4wcsu/XfDZQZCk2xULQrLwX9mIHBetgZVsmJvTegCW5yip ZG+w== X-Gm-Message-State: APjAAAWYHLnvEaQut2q+dZSMnSXUKZZrO2Ni2RvOHAXHW21SZvbOdNKz vZLYj38h8SIIwi37qmvXVw0VtZ1dwpjFocll1Jo= X-Google-Smtp-Source: APXvYqy9SzqJ1yQO6pJQZJiAIaeK37B5eNSBzLtwAlZrEkbjOePCoIPK/ENUwxdDSDoTlUxkkQhub0It+B5DKtJCNGQ= X-Received: by 2002:ac8:4504:: with SMTP id q4mr2190164qtn.354.1568886115683; Thu, 19 Sep 2019 02:41:55 -0700 (PDT) MIME-Version: 1.0 References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> In-Reply-To: <87v9toy9wh.fsf@gnu.org> From: zimoun Date: Thu, 19 Sep 2019 11:41:44 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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: -1.0 (-) Hi, On Thu, 19 Sep 2019 at 10:22, Ludovic Court=C3=A8s wrote: > >> Now, it=E2=80=99s true that having two different profiles appears to b= e hard > >> to grasp for newcomers, as Ricardo was saying just now on IRC. > > > > I suspect that the whole idea of profiles (as distinct from the user > > account) is not obvious. If I ever extend my tutorial to include > > profiles, I would probably introduce them as persistent environments. > > Yeah, that=E2=80=99s what they are, so maybe it=E2=80=99s simpler to pres= ent profiles as > persistent environments. Coming from Conda package manager, it took me some time to understand; because the Guix terminology was not what I was expecting from the Conda terminology (in conda "guix environment" does not exist, and "guix profile" is called environment). Profile as persistent environment clarifies, IMHO. Is it possible to list all my own profiles? > > And since I am in criticizing mood, the whole Guix management API > > suffers from bad naming. Consider "guix pull -l". What does it pull? O= r I agree that "guix pull" should be split into: - "guix pull" which actually pulls and builds derivations - "guix log" which lists, switches or deletes the pull generation For example "guix log --news" seems better than "guix pull --news". > > "guix package =E2=80=93-roll-back", which doesn't roll back a package b= ut a > > profile. I am not sure to understand this point. What do you mean? To me, "guix package" manipulates transactions (states). i.e., "guix package =E2=80=93-roll-back" roll backs a transaction of a prof= ile. >From section 4.1 Features The command provides the obvious install, remove, and upgrade operations. Each invocation is actually a _transaction_: either the specified operation succeeds, or nothing happens. Thus, if the =E2=80=98gu= ix package=E2=80=99 process is terminated during the transaction, or if a powe= r outage occurs during the transaction, then the user=E2=80=99s profile remai= ns in its previous state, and remains usable. Therefore, from my opinion, the UI seems good enough here. All the best, simon From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 10:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156888837029860 (code D ref 37443); Thu, 19 Sep 2019 10:20:01 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 10:19:30 +0000 Received: from localhost ([127.0.0.1]:55175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAtX7-0007lX-Ur for submit@debbugs.gnu.org; Thu, 19 Sep 2019 06:19:30 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:32833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAtX6-0007lL-Ay for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 06:19:28 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 7EF787E4; Thu, 19 Sep 2019 06:19:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 19 Sep 2019 06:19:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= 6/vyAum7RCRuHIgIx92usVbrCPYxhRPhSScSmp5s+jM=; b=vLRE6TxoNBqXgWtz 7wd6MLWgo2i2LfmIfdRPW6oFw0wvCzU+CEc+/jePs+OENUcVkU9l4iKT6mAH9aJO Z1mbbh8sal+9d8tIt8CYruV49ReBv0v1vaGjom7UD6/s6a+Fv+AcXONvXqFoMb04 8qrUE6spwzzvYJMaJnJYspq7LOPrNIOmvYY8dCrYqCJawmBWOcYjzGch3uyDWm0I 78kywSAt/1AaoOHRfT34tDtjI7gdvOgfh1ORYNQTF69PNf85V2OUSzYsG31TD9eH wCPhEYslkRNS8z/UEpKRSdZnsC66f9AFdFHlO22ffpMbmrJt1kH+XCWuzE9nYsqo 5GkyGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=6/vyAum7RCRuHIgIx92usVbrCPYxhRPhSScSmp5s+ jM=; b=dxxk3tvWuOG1N64mS+xLxH3x9KZcTkAHWm/SndNELvx5z6vaLzw0T14Oj bXVJ37YIo5ZIU0o/BnUZ8iQfX6Q7Xuz33ICP8/Qo1hmRaUf5hfEfEi7jYoNOv3ee cskEqJt9SSmofuVDBy6Y998DwfhGbpfiJsIEobpSjyB0gol0RN+QAiv9b/1Elmxi vAtozYJPqg8p1pIDROMagl4H4q+TwO8ik/a1bVFolbQDYgf43YfWV1D5ny8CazCV asQlJ9zi514V4vMwUGUfmH9db76glZrQVkIQHW78aNWNSALL7NVwBCOviYSav2i0 r+u2vmVqI2kg5aQvhP8jPd2vM/a/Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddtgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffffkgggtgfesthhqredttddtjeenucfhrhhomhepmfhonhhrrggu ucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth eqnecukfhppeduleehrddvvddurddtrddvtdeinecurfgrrhgrmhepmhgrihhlfhhrohhm pehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvthenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from KHs-MacBook.local (soleil-ext.synchrotron-soleil.fr [195.221.0.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 653B7D6005A; Thu, 19 Sep 2019 06:19:21 -0400 (EDT) From: Konrad Hinsen In-Reply-To: <87v9toy9wh.fsf@gnu.org> References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> Date: Thu, 19 Sep 2019 12:19:20 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) 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: -1.7 (-) Ludovic Court=C3=A8s writes: >> And since I am in criticizing mood, the whole Guix management API >> suffers from bad naming. Consider "guix pull -l". What does it pull? Or >> "guix package =E2=80=93-roll-back", which doesn't roll back a package bu= t a >> profile. Guix is following the lead of git whose command line API makes >> sense only to people who have seen it grow historically. > > What would you suggest? =E2=80=9Cguix log=E2=80=9D, =E2=80=9Cguix roll-b= ack=E2=80=9D? I don't have a detailed and thought-out plan, but here are some ideas: - Everything that modifies a profile (the standard package kind) starts with "profile": guix profile install ... guix profile remove ... guix profile roll-back The could be made optional in some way for working on the default profile. - The profile-independent operations of "guix package" already have nice aliases, e.g. "guix search". So "guix package" could go away. - Everything that operates on "guix" (the software, including the package definitions) starts with "itself": guix itself update (today's "guix pull") guix itself roll-back Konrad. From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 11:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Konrad Hinsen Cc: 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156889416914876 (code D ref 37443); Thu, 19 Sep 2019 11:57:01 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 11:56:09 +0000 Received: from localhost ([127.0.0.1]:55237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAv2e-0003rs-Lx for submit@debbugs.gnu.org; Thu, 19 Sep 2019 07:56:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAv2c-0003rT-Bi for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 07:56:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iAv2X-0001Dt-1T; Thu, 19 Sep 2019 07:56:01 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=33504 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iAv2W-0005cX-9T; Thu, 19 Sep 2019 07:56:00 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Jour du Travail de =?UTF-8?Q?l'Ann=C3=A9e?= 227 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 19 Sep 2019 13:55:56 +0200 In-Reply-To: (Konrad Hinsen's message of "Thu, 19 Sep 2019 12:19:20 +0200") Message-ID: <878sqk33g3.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-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 (---) Konrad Hinsen skribis: > Ludovic Court=C3=A8s writes: > >>> And since I am in criticizing mood, the whole Guix management API >>> suffers from bad naming. Consider "guix pull -l". What does it pull? Or >>> "guix package =E2=80=93-roll-back", which doesn't roll back a package b= ut a >>> profile. Guix is following the lead of git whose command line API makes >>> sense only to people who have seen it grow historically. >> >> What would you suggest? =E2=80=9Cguix log=E2=80=9D, =E2=80=9Cguix roll-= back=E2=80=9D? > > I don't have a detailed and thought-out plan, but here are some ideas: > > - Everything that modifies a profile (the standard package kind) starts > with "profile": > > guix profile install ... > guix profile remove ... > guix profile roll-back > > The could be made optional in some way for working > on the default profile. OK. A =E2=80=9Cguix profile=E2=80=9D command has been proposed before. I = think it makes sense in terms of taxonomy, but I don=E2=80=99t find it pretty in ter= ms of UI. Also, now that we finally have =E2=80=9Cguix install=E2=80=9D & co., which = is really what users expect, I feel less of an incentive for a catch-all =E2=80=9Cguix profile=E2=80=9D command. Maybe we need more of these aliases, though, like =E2=80=9Cguix show=E2=80= =9D. > - The profile-independent operations of "guix package" already have > nice aliases, e.g. "guix search". So "guix package" could go away. Yeah. (In practice =E2=80=98guix package=E2=80=99 would have to be kept ar= ound, but it=E2=80=99s OK since all these commands share the same code.) > - Everything that operates on "guix" (the software, including the > package definitions) starts with "itself": > > guix itself update (today's "guix pull") > guix itself roll-back It=E2=80=99s a another instance where the categorization you propose makes = sense to me, but as a command I=E2=80=99d have to type, it=E2=80=99s not somethin= g I like. Thanks, Ludo=E2=80=99. From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 12:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Konrad Hinsen , 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156889585117410 (code D ref 37443); Thu, 19 Sep 2019 12:25:02 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 12:24:11 +0000 Received: from localhost ([127.0.0.1]:55248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAvTn-0004Wk-8X for submit@debbugs.gnu.org; Thu, 19 Sep 2019 08:24:11 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:39411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAvTj-0004WV-RC for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 08:24:09 -0400 Received: by mail-qt1-f195.google.com with SMTP id n7so3918687qtb.6 for <37443-done@debbugs.gnu.org>; Thu, 19 Sep 2019 05:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=w0FfppTCRkXIgoofTxk2Gz/EiYAVFipQOfRxwn4crv4=; b=f4YWxCffxPoTCpp71jVg4dXVR/vfxfmjugPaqrlvrfhOyKisK+JFSZXako4X6z6dJa GzysfkJ1DNCregk7Z6ZFZfqss+2wusBxsPwhbXIzm0hYba37zU5IXwBvZ55rpCdcS+Nc yeFZl9YW3C8A94zYdphHX8GwbY3hfgH06E2U4PL6o2FvSgIm4huuMwnoMmXEUomZNkwG l/zFB0kJL2KqnFUIsi4d6MGFU6Qk/6earNsLVfokFhh60bwhRt7nzCEYKU3RM1XPMwyw 0rXoxfSakG0Pg685mNHWtgk3regrj0T6oH5HGgUdlG66/2yT7Za74RYeyPfMsuxlG/6R +oxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=w0FfppTCRkXIgoofTxk2Gz/EiYAVFipQOfRxwn4crv4=; b=K8gtfNiAuUmwETiHIp8hWEX1E12Mezyo1LLzYBH2zItj2iD8mXwImaoBzCoqadSgvg V4eU/B2T6AiaWdj2bQS/G3q4JwfNrGKeOWrPuZtdIrDbO6lFPeSXBBqcH4oBsk0OpgS1 IppLtr/5EA1x7x1sGL2oJQ2CE7x6zPlChR7P3kX0Z3ZBRZud1Qb90zlIzNshc+w67lu0 KT9OfqKcdnLVAp5I/eC4wGCfy95wj0BHIkdVCdhFlckKLRvz1UzHS8mrgBvgKIY9corl xGaEMPRGOxrxxZB/SxwOUe/bJHoYP49pZp9uY3uwa8o6jgkApKUBKuqz+hm0cxkDjBIV vdKw== X-Gm-Message-State: APjAAAUX4pA+G97VfTcV3/qfMDdkPiIXc/X4Weh2lsG+oyIrZlHeUB5a ZS7r7MLdzJiU96+FrCtYAhkMSoN5apPMglxukpY= X-Google-Smtp-Source: APXvYqxuFHmGYfmvybkLjvd4zke+zMwzoii8luA5rRXK58jSnWVUQ3EqDXQtWj5BQ5nZ8nct13QjftCDwanMxshfLeA= X-Received: by 2002:ac8:428e:: with SMTP id o14mr2976875qtl.186.1568895842370; Thu, 19 Sep 2019 05:24:02 -0700 (PDT) MIME-Version: 1.0 References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> <878sqk33g3.fsf@gnu.org> In-Reply-To: <878sqk33g3.fsf@gnu.org> From: zimoun Date: Thu, 19 Sep 2019 14:23:51 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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: -1.0 (-) On Thu, 19 Sep 2019 at 13:57, Ludovic Court=C3=A8s wrote: > > Konrad Hinsen skribis: > > > Ludovic Court=C3=A8s writes: > Also, now that we finally have =E2=80=9Cguix install=E2=80=9D & co., whic= h is really > what users expect, I feel less of an incentive for a catch-all =E2=80=9Cg= uix > profile=E2=80=9D command. > > Maybe we need more of these aliases, though, like =E2=80=9Cguix show=E2= =80=9D. "guix show" would be nice. But I did not feel a lot of enthusiasm about it. ;-) https://lists.gnu.org/archive/html/guix-devel/2019-07/msg00264.html Something nicer should be to have aliases defined by the user. > > - Everything that operates on "guix" (the software, including the > > package definitions) starts with "itself": > > > > guix itself update (today's "guix pull") > > guix itself roll-back > > It=E2=80=99s a another instance where the categorization you propose make= s sense > to me, but as a command I=E2=80=99d have to type, it=E2=80=99s not someth= ing I like. Me neither. :-) And "guix itself" fixes implicitly the profile to ~/.config/guix/current and maybe people are doing "non-conventional" stuff as "guix pull -p ~/.guix-profile --list-generations". "guix pull --list-generations" should be aliased to "guix log" "guix pull --delete-generations" -> "guix log --delete-generations" "guix pull --switch-generations" -> "guix log --switch-generations" "guix pull --news" -> "guix log --news" All the best, simon From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 12:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: Konrad Hinsen , 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156889652518432 (code D ref 37443); Thu, 19 Sep 2019 12:36:02 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 12:35:25 +0000 Received: from localhost ([127.0.0.1]:55253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAvef-0004nE-EY for submit@debbugs.gnu.org; Thu, 19 Sep 2019 08:35:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAvee-0004n2-3A for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 08:35:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iAveY-0007Us-GQ; Thu, 19 Sep 2019 08:35:18 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=40548 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iAveX-0006Ib-No; Thu, 19 Sep 2019 08:35:18 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> <878sqk33g3.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Jour du Travail de =?UTF-8?Q?l'Ann=C3=A9e?= 227 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 19 Sep 2019 14:35:13 +0200 In-Reply-To: (zimoun's message of "Thu, 19 Sep 2019 14:23:51 +0200") Message-ID: <874l1831mm.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-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 (---) zimoun skribis: > On Thu, 19 Sep 2019 at 13:57, Ludovic Court=C3=A8s wrote: >> >> Konrad Hinsen skribis: >> >> > Ludovic Court=C3=A8s writes: > >> Also, now that we finally have =E2=80=9Cguix install=E2=80=9D & co., whi= ch is really >> what users expect, I feel less of an incentive for a catch-all =E2=80=9C= guix >> profile=E2=80=9D command. >> >> Maybe we need more of these aliases, though, like =E2=80=9Cguix show=E2= =80=9D. > > "guix show" would be nice. > But I did not feel a lot of enthusiasm about it. ;-) > https://lists.gnu.org/archive/html/guix-devel/2019-07/msg00264.html I=E2=80=99m enthusiastic every time I type =E2=80=9Cguix package --show=3D= =E2=80=9D, believe me. ;-) > Something nicer should be to have aliases defined by the user. Yes, that too. >> > - Everything that operates on "guix" (the software, including the >> > package definitions) starts with "itself": >> > >> > guix itself update (today's "guix pull") >> > guix itself roll-back >> >> It=E2=80=99s a another instance where the categorization you propose mak= es sense >> to me, but as a command I=E2=80=99d have to type, it=E2=80=99s not somet= hing I like. > > Me neither. :-) > > And "guix itself" fixes implicitly the profile to > ~/.config/guix/current and maybe people are doing "non-conventional" > stuff as "guix pull -p ~/.guix-profile --list-generations". > > "guix pull --list-generations" should be aliased to "guix log" > "guix pull --delete-generations" -> "guix log --delete-generations" > "guix pull --switch-generations" -> "guix log --switch-generations" > "guix pull --news" -> "guix log --news" Though =E2=80=9Cguix log=E2=80=9D is ambiguous: it could mean guix pull -l or: guix package -l or: guix build --log-file Naming is hard! Ludo=E2=80=99. From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 13:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156890146526825 (code D ref 37443); Thu, 19 Sep 2019 13:58:02 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 13:57:45 +0000 Received: from localhost ([127.0.0.1]:56240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAwwK-0006yb-Py for submit@debbugs.gnu.org; Thu, 19 Sep 2019 09:57:45 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAwwI-0006yL-Ek for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 09:57:42 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 38D112148D; Thu, 19 Sep 2019 09:57:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 19 Sep 2019 09:57:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= KqwKKQyoEPqg9e2vJFEw669iGT7GCn0PQdR4M4nbeho=; b=fySPtiz5BdKqRtuC zDAj5ht0Za3Ae0UIqhuKk82vkgFduEqxfSR3JvS/eDCqvONojHnLfpTtdrXRmTKH T4yRCnQpJjNwRqSuGsBnBGwRTikYqLb4wanEGVw6qQtsQsq+B4fU5ht+hdPy8J9O 9ABkJVBdiUFo9HmP3eK02hKjD3CJAgf8EzAWIKW9cmYwd3zgVQ+sYt2v2bx9R7Fl D+3Au1izZ/9Byxi96ufg9Wjg7PWcjsOwNdf64tzrcI+wRnUz1RtGY23yLfVT7Ua+ h2bhP/of+IhlaMwLfAymn3gZwunkoTG10vp0+Oi60Jc0ML4W6Fqn6TD41jrKbcz/ 73noNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=KqwKKQyoEPqg9e2vJFEw669iGT7GCn0PQdR4M4nbe ho=; b=j/NRY90ar0iUoKiWxucWI/0CCcTNrL95d9vGmGDAAgMe0xoYK6XY49C92 xil7yHRIQkgnvRQg/58khmEjxc1VGa/hDodB67tvC0736vE1t8EolptASUm0eUo7 2AapSZg7AgmAdpu91JHz2xEDmDv27SiD3BWwYHD6ShzKHHPnemGH0j1rmpEihcwV vcaz3evFHKCbUGz8OJYAhtwcDOvUJEPvgksmizp1OJdTMfxXFcmp1wwOPogIwf+/ lcByli8AyaqxyD4MkigcYJFWU18fhFtzTgGHkEf+nfVTvffsJ11+hctP1BkBdBkM VqhQpoyByLIZ3iXz5wC1BxMU/OAVQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddtgdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffffkgggtgfesthhqredttddtjeenucfhrhhomhepmfhonhhrrggu ucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth eqnecukfhppeduleehrddvvddurddtrddvtdeinecurfgrrhgrmhepmhgrihhlfhhrohhm pehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvthenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from KHs-MacBook.local (soleil-ext.synchrotron.fr [195.221.0.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 75743D6006B; Thu, 19 Sep 2019 09:57:36 -0400 (EDT) From: Konrad Hinsen In-Reply-To: <878sqk33g3.fsf@gnu.org> References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> <878sqk33g3.fsf@gnu.org> Date: Thu, 19 Sep 2019 15:57:35 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) 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: -1.7 (-) Ludovic Court=C3=A8s writes: > OK. A =E2=80=9Cguix profile=E2=80=9D command has been proposed before. = I think it > makes sense in terms of taxonomy, but I don=E2=80=99t find it pretty in t= erms of > UI. It's a bit long, but then I don't really install packages so often that this would bother me. I waste much more time re-reading the man page every time I use a guix subcommand I haven't used in a while. > It=E2=80=99s a another instance where the categorization you propose make= s sense > to me, but as a command I=E2=80=99d have to type, it=E2=80=99s not someth= ing I like. Same comment. I really like Guix, but that doesn't mean I spend much time typing Guix commands. It's a rare event. My priorities in command API design for Guix would be 1. Clear: when I type a command, I want to be sure what exactly it does. 2. Memorizable: minimize the need to re-read the documentation. 3. Error tolerant: a one-letter typo or a forgotten argument shouldn't lead to some completely different action. Typing efficiency doesn't even make it to the list. > Naming is hard! I have heard that before ;-) Cheers, Konrad. From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 17:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Konrad Hinsen , 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156891379616477 (code D ref 37443); Thu, 19 Sep 2019 17:24:02 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 17:23:16 +0000 Received: from localhost ([127.0.0.1]:56350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB09E-0004Hh-E2 for submit@debbugs.gnu.org; Thu, 19 Sep 2019 13:23:16 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB09C-0004HX-GI for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 13:23:15 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1568913774; cv=none; d=zoho.com; s=zohoarc; b=hak0tFsnosZwfjEAtsCthq8HzkK+6kyi7EO9jnR3Sdbe/D0zub1iQwuGuCEFA/FpqSKiPujsSCNlenA90EIyEJ+s3jS5Cx0HFC/ukSudOQJBVbtZ+fG7VN60rBSR3M4pO6uHwk+Z18Ao+2l6V8gUwmeS2U2CrZzuHPGZ+DbHRW0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568913774; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=GRQ4ztDr4V5wJjvBD8UQEn6ucijBZ+O5WK/t2z+d++4=; b=oc8nejU/+UN+hxJKWOr29vbQJ4AtqzsZma/2AQPXU14rwYg51OQafa6V3wbHuH8AvXpIxHwtgKECjSVh0ISvgI/NB00F0gwbRwMHz4Kd/DBqaWMrRw8olv+iN5qC1NoZcB7bnfyxaZpV4L2OEa0F79kB0xvum91mQNgi4LLzBy0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1568913774; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=1408; bh=GRQ4ztDr4V5wJjvBD8UQEn6ucijBZ+O5WK/t2z+d++4=; b=Hvd/gNbUqBLuduWuWRFyz3q6P1QCN8v/afkzn+uMzii7Lx7ZiVsjblEIVW83s048 RpHh56Gvt6ucOdnRQvNoBGWfOWeM6xdSp2JXGliwTCIAe8mxdxQX6QkKz1q/gWvwSHt ioBZaNaKfU0PUKSN9qvDi7IOex5sxqr+Aq7JWLjs= Received: from localhost (p54AD4E22.dip0.t-ipconnect.de [84.173.78.34]) by mx.zohomail.com with SMTPS id 15689137737941013.7704541360712; Thu, 19 Sep 2019 10:22:53 -0700 (PDT) References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.2 From: Ricardo Wurmus In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 19 Sep 2019 19:22:48 +0200 Message-ID: <877e64nqtz.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) 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: -1.0 (-) zimoun writes: > Coming from Conda package manager, it took me some time to understand; > because the Guix terminology was not what I was expecting from the > Conda terminology (in conda "guix environment" does not exist, and > "guix profile" is called environment). > > Profile as persistent environment clarifies, IMHO. Instead of providing a =E2=80=9Cguix profile=E2=80=9D command, another opti= on would be to merge =E2=80=9Cguix package=E2=80=9D and =E2=80=9Cguix environment=E2=80= =9D to just =E2=80=9Cguix env[ironment]=E2=80=9D. We could finally get rid of =E2=80=9Cguix environm= ent --ad-hoc=E2=80=9D while we=E2=80=99re at it :) > Is it possible to list all my own profiles? Not with a simple command, but Guix does keep links to profiles. Take a look here: /var/guix/gcroots/profiles/per-user/zimoun/ >> > And since I am in criticizing mood, the whole Guix management API >> > suffers from bad naming. Consider "guix pull -l". What does it pull? = Or > > I agree that "guix pull" should be split into: > - "guix pull" which actually pulls and builds derivations > - "guix log" which lists, switches or deletes the pull generation > > For example "guix log --news" seems better than "guix pull --news". I=E2=80=99m not convinced this would actually be an improvement. We need to avoid sub-command inflation. -- Ricardo From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 17:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Konrad Hinsen , 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156891407017076 (code D ref 37443); Thu, 19 Sep 2019 17:28:02 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 17:27:50 +0000 Received: from localhost ([127.0.0.1]:56366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB0Dc-0004RI-SI for submit@debbugs.gnu.org; Thu, 19 Sep 2019 13:27:50 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:45838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB0Db-0004R0-Cj for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 13:27:47 -0400 Received: by mail-qk1-f193.google.com with SMTP id z67so4163124qkb.12 for <37443-done@debbugs.gnu.org>; Thu, 19 Sep 2019 10:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=R1ansGTD7FhtrqwDbvBfXUcLSEb01Bmd19rwvjxaBQc=; b=O3RTPA1CK/ej9vhr1jCBYSdRTvIDAak1iQpEk/O3mAy0O80Kf2yVQz6wKtALduc5RE b7mGYHhyz0othAfQAbWgx1+ed25/9ozf61d6XxXyy7kduWxSHRZQDiqBo0QYixoDWi5n dlBuLbLOikMXusP3h12WE4xegoSlk1yCffTRn4NF6alLAjQLNnTEzqhS/n0V2nIn3mql nsT3B7ontCpHMJT4l3HwpkNIclnMEEnGZMfTvprY5sgDYrdYQbncysYgfR1wT1z9j2eG FxBvB3QCsEGtniZjjA1+N7roFOFiUSTZhYYX8Rx7++F05kCY8m1tA+4OPe103CA49Na9 wclA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=R1ansGTD7FhtrqwDbvBfXUcLSEb01Bmd19rwvjxaBQc=; b=BUHpt115E+QEaLcAvxdvIHqnp42aD6YpO1W7KQ4Qr31VuHhHrgzhIVxJdwfTblnT5z 15rHsu/U635k+Ne/8aDWhFqsRY91Y30TKq0b5qxGUb1tL1QuiJhGqglxRfTq1thIFYxE TSsS13LEMm0YjhSyGPt61L8dQKBoNpIwdkQWXfeT5DbWkAVXFSsOwuU4kurQpB8Fr4Bz Js23y15WwgWVMJO9utRvOdJCJX0a+hLC8mRXO+EZ9lYe9wKp+nvl1UWjIeVw1KsWYaJU elMYGhOn7CBsbT/A1IPIFdemezuY7FH11cIu/4ubuaHQZy7KgAl1bYdMlZNEdwRYjITR fV+g== X-Gm-Message-State: APjAAAUM67Cvs1ETrOnW50xD3iN4LQkfBQu7ywgYKLM/YVEQ0gzQvL52 s0uRaft4UkB69MMJtMsOWLNUqXV2egn8AV0RK5s= X-Google-Smtp-Source: APXvYqzWlFmbCi3R0d2/qCj8yRtaT5B4YSihbEHAIgs6PiPfPqlNLOUqyZyLqv8wStCCYDhvzScsR5gurVDiDQGZ7Ys= X-Received: by 2002:a37:b981:: with SMTP id j123mr3710206qkf.201.1568914061950; Thu, 19 Sep 2019 10:27:41 -0700 (PDT) MIME-Version: 1.0 References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> <878sqk33g3.fsf@gnu.org> <874l1831mm.fsf@gnu.org> In-Reply-To: <874l1831mm.fsf@gnu.org> From: zimoun Date: Thu, 19 Sep 2019 19:27:30 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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: -1.0 (-) Hi Ludo, On Thu, 19 Sep 2019 at 14:35, Ludovic Court=C3=A8s wrote: > >> Maybe we need more of these aliases, though, like =E2=80=9Cguix show= =E2=80=9D. > > > > "guix show" would be nice. > > But I did not feel a lot of enthusiasm about it. ;-) > > https://lists.gnu.org/archive/html/guix-devel/2019-07/msg00264.html > > I=E2=80=99m enthusiastic every time I type =E2=80=9Cguix package --show= =3D=E2=80=9D, believe me. > ;-) Done here https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D37462 :-) All the best, simon From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 18:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ricardo Wurmus Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Konrad Hinsen , 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.156891709022643 (code D ref 37443); Thu, 19 Sep 2019 18:19:02 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 18:18:10 +0000 Received: from localhost ([127.0.0.1]:56403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB10L-0005t9-Jx for submit@debbugs.gnu.org; Thu, 19 Sep 2019 14:18:09 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:45018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB10J-0005st-QH for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 14:18:08 -0400 Received: by mail-qt1-f195.google.com with SMTP id u40so5394539qth.11 for <37443-done@debbugs.gnu.org>; Thu, 19 Sep 2019 11:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=u74kX66jobJcrUlffMxHs6skTXAqwyWwpXjPkP3BBSY=; b=S8MAay1X+jl3eyBGs8KPsrUec1QEf+Co0WhIl1NwWEGcrUoWQSKnyRFhxMGoX/b3hn 9MDLSTdrxqOVzgBb+mlcdaQhZ0nYKFZi5Kl+72nPpngWVNfQnycF7jKQhSbAgrAWMRjY c6ep2+MzfY4ebVhHL3kSWgzOhXOLlMC0bjTK7BevWvXcbYVYE2wAKQGWMbcO5i5MjsN+ P3356/iSjwzhbITjLLO+7uOELctlO8AarqjNUCkBjfXzBZlUdCc/xpLO7dI8OCBnO0xJ NwDlnSbcPhfcCpl+hnkI6GdTrg0W0cLGV0DxElhwudyH9jr6BwNgF1kdTnk1gvWC9SIg uJlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=u74kX66jobJcrUlffMxHs6skTXAqwyWwpXjPkP3BBSY=; b=WSmT3/egYF+I+dHjiIsnQCn2WfnY7I3hzW8hwhS663FmWMFIYidzwrom623QnWE49e kMakQFFP0psPyctx8tGyVRQBQzxdqUmY5VeUo5xYVLOmmnQYWOmT1lDqnqfuTOES9msb 8iHrIflwLWySA345d9MGku46dlb31kzj8NP3H5l+fDaUCcy5pzFgTerPKKU9R1/1IfGl z6ANIorLldPSB/RS1NRt6zSCh7WFOIh/jLGVEVH3ALNfLVTL2ow145LCuHL/v/qt8qVl 6SKEfC5jdGKtXmkQh6OGftYJGQ5QHhfBRR8xsyoAsWybZbRvwM+nlfkxCBBw70PQedfa djGA== X-Gm-Message-State: APjAAAWn8NtFHMcK0PrXktjCLmtlsq7Kzw7IYIGvaOlFlk3QV52Z0Tje VOdHGlNq4eRMr4HUGa18cwz25bbva++tclR7yMw= X-Google-Smtp-Source: APXvYqx6h3oD93/a5Vnj/jFguO+L4pC/YE8OaHBV0kXbSwbMgaraakkh/iy+uvbAIni8tnFYngg+6gMXIpAvYGvlfx0= X-Received: by 2002:ac8:4504:: with SMTP id q4mr4685552qtn.354.1568917082337; Thu, 19 Sep 2019 11:18:02 -0700 (PDT) MIME-Version: 1.0 References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> <877e64nqtz.fsf@elephly.net> In-Reply-To: <877e64nqtz.fsf@elephly.net> From: zimoun Date: Thu, 19 Sep 2019 20:17:51 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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: -1.0 (-) Hi Ricardo, On Thu, 19 Sep 2019 at 19:23, Ricardo Wurmus wrote: > Instead of providing a =E2=80=9Cguix profile=E2=80=9D command, another op= tion would be > to merge =E2=80=9Cguix package=E2=80=9D and =E2=80=9Cguix environment=E2= =80=9D to just =E2=80=9Cguix > env[ironment]=E2=80=9D. We could finally get rid of =E2=80=9Cguix enviro= nment > --ad-hoc=E2=80=9D while we=E2=80=99re at it :) Thank you to feed my thoughts. Your propose something like: guix package -i foo -> guix env -i foo guix environment guile --ad-hoc emacs --pure -> guix env --deps=3Dguile -i emacs --pure But what becomes: guix environment --ad-hoc foo -> guix env -i foo --name-it ? I agree that this merge seems to ease the introduction of Guix concepts by smoothing the gap with the other package managers. Kind of. :-) > > Is it possible to list all my own profiles? > > Not with a simple command, but Guix does keep links to profiles. Take a > look here: > > /var/guix/gcroots/profiles/per-user/zimoun/ Thank you for explaining. Hum? I have profiles which are not listed there. I only see current-guix and guix-profile (and their generations). Well, with the package manager Conda, there is an "useful" command: conda info --envs which list all the "conda environments" (i.e., "guix profile") created with "conda create -n foo" (i.e., "guix package -p foo"). (it is ease in conda world because the user cannot create the environment/profile wherever they wants) Because some weeks/month can separate two sessions of work in one particular profile, in general I do not remember its name. And because you can create the profile wherever you want, I sometimes spend some time to reach this profile. It is annoying. :-) So, the solution that I use is to create one folder containing all my profiles or to put in the project folder. It is good practise, I guess. But discipline is hard. ;-) I would find more convenient to be able to list them. (bikeshedding? ;-) > I=E2=80=99m not convinced this would actually be an improvement. We need= to > avoid sub-command inflation. Naming is hard. ;-) All the best, simon From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 18:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun , Ricardo Wurmus Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 37443-done@debbugs.gnu.org Received: via spool by 37443-done@debbugs.gnu.org id=D37443.15689188401883 (code D ref 37443); Thu, 19 Sep 2019 18:48:01 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 18:47:20 +0000 Received: from localhost ([127.0.0.1]:56418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB1SZ-0000UJ-Nm for submit@debbugs.gnu.org; Thu, 19 Sep 2019 14:47:20 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:43093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB1SX-0000Tr-ED for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 14:47:18 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 4451920F44; Thu, 19 Sep 2019 14:47:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 19 Sep 2019 14:47:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=nuj+sGt6jv08Q72foB22dxMR0i pRxAJpZTzJ8RVyCjY=; b=TmoVjTIrMQ0fBTUg+NaOBkZJdbTnPTn2dEShvQl+z+ 6+twfFFw2zA4zevzdw93gtz1/xlqWZj+NedoaHFSf1N8ZTequzISaTZ6FbJUhD/1 Rek5HWZ0HN4kKyFgVdjoNAkcZVdvDUjoLSrO3/rKptfMTS0r1Te7EoOj8+WnHIct Qu16gg40Pt9aKV7w1LpFrRsHvgMxykje2aHIKjttNsmiAluxHj8OY/iorflQkARU wvqzfxZUTmOlkAwTDui7AotBC8dx75QMokPQ2a0pn6zkXNODjQW/D4WMMvfOHyUx hSLvuJ/A0LRc/YMhqSxlwfV3wSDEaaRRsSeg4zyp5Q5A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=nuj+sG t6jv08Q72foB22dxMR0ipRxAJpZTzJ8RVyCjY=; b=RNYE3ZRxd5OA04+MWEJdEb AGy8KKJT7MoAoZGth2NlnVdat+dAY+E4QNgtLH4ullKgB38/jla6zQcp6JMauUhu qI9L/eQsz5yFVRnjGzIuKkxpXxphReGvHDcrfWPw3ycbkP3y57a7T2R8ncDGxzla XLMS9/Pq+Y9ilBqWVY834mxul02TJbQ8r15Vi6anyvpBMLkrckg+Fmo6m9F92X8H /D3QddU0zi3AYsYm0jFfhPkMv1uLIAN1hvQwFJBSpeGmm9Yh9ScZO2v0B5LywQNt BMWgyjYAw08FIrpmz92+tbMJQGJTN9NtLc8e/PJkcBcAIcx6lARzRFyESyJiFFSg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddtgddufedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepmfhonhhrrggu ucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth eqnecukfhppeekvddruddvfedruddtrdegudenucfrrghrrghmpehmrghilhhfrhhomhep khhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvghtnecuvehluhhsthgvrh fuihiivgeptd X-ME-Proxy: Received: from khs-macbook.home (lfbn-idf2-1-259-41.w82-123.abo.wanadoo.fr [82.123.10.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 489E4D60062; Thu, 19 Sep 2019 14:47:11 -0400 (EDT) From: Konrad Hinsen In-Reply-To: References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> <877e64nqtz.fsf@elephly.net> Date: Thu, 19 Sep 2019 20:47:10 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -1.7 (-) zimoun writes: > Your propose something like: > > guix package -i foo > -> guix env -i foo > guix environment guile --ad-hoc emacs --pure > -> guix env --deps=guile -i emacs --pure > > But what becomes: > guix environment --ad-hoc foo > -> guix env -i foo --name-it ? Also: how do you distinguish between creating an environment from a manifest and rebuilding a profile from a manifest? Konrad (manifest addict) From unknown Tue Jun 17 01:43:58 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37443] Listing profiles Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2019 19:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ricardo Wurmus Cc: Konrad Hinsen , 37443-done@debbugs.gnu.org, zimoun Received: via spool by 37443-done@debbugs.gnu.org id=D37443.15689220948716 (code D ref 37443); Thu, 19 Sep 2019 19:42:01 +0000 Received: (at 37443-done) by debbugs.gnu.org; 19 Sep 2019 19:41:34 +0000 Received: from localhost ([127.0.0.1]:56441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB2J3-0002GV-Ls for submit@debbugs.gnu.org; Thu, 19 Sep 2019 15:41:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB2J2-0002GG-4S for 37443-done@debbugs.gnu.org; Thu, 19 Sep 2019 15:41:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iB2Iu-0005i4-PG; Thu, 19 Sep 2019 15:41:25 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43168 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iB2Ir-0004mM-PA; Thu, 19 Sep 2019 15:41:22 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87d0fx71p2.fsf@gnu.org> <87v9toy9wh.fsf@gnu.org> <877e64nqtz.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Jour du Travail de =?UTF-8?Q?l'Ann=C3=A9e?= 227 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 19 Sep 2019 21:41:18 +0200 In-Reply-To: <877e64nqtz.fsf@elephly.net> (Ricardo Wurmus's message of "Thu, 19 Sep 2019 19:22:48 +0200") Message-ID: <87sgosysyp.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-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, Ricardo Wurmus skribis: > Not with a simple command, but Guix does keep links to profiles. Take a > look here: > > /var/guix/gcroots/profiles/per-user/zimoun/ That doesn=E2=80=99t show profiles that live in different locations, though. =E2=80=9Cguix gc --list-roots=E2=80=9D gets closer to that, but not quite. = I=E2=80=99ll try to come up with a patch to add =E2=80=9Cguix package --list-profiles=E2=80=9D. Thanks, Ludo=E2=80=99.