From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 27 12:38:17 2019 Received: (at submit) by debbugs.gnu.org; 27 Apr 2019 16:38:17 +0000 Received: from localhost ([127.0.0.1]:35872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKQLA-0007mM-Q2 for submit@debbugs.gnu.org; Sat, 27 Apr 2019 12:38:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKQL9-0007m7-LJ for submit@debbugs.gnu.org; Sat, 27 Apr 2019 12:38:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:44194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKQL4-0007kL-Fm for submit@debbugs.gnu.org; Sat, 27 Apr 2019 12:38:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKQL3-0001bR-1H for guix-patches@gnu.org; Sat, 27 Apr 2019 12:38:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=ALL_TRUSTED,BAYES_05, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKQ8X-00028h-Gz; Sat, 27 Apr 2019 12:25:13 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37664 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hKQ8R-00063J-So; Sat, 27 Apr 2019 12:25:11 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH 0/1] Add 'guix install', 'guix remove', and 'guix upgrade' Date: Sat, 27 Apr 2019 18:25:00 +0200 Message-Id: <20190427162500.13554-1-ludo@gnu.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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 Guix! Here’s a change that’s both trivial and anecdotal by its size and complexity, and super important after 7 years typing ‘guix package -i’ when every other tool out there has an ‘install’ sub-command. :-) The main question is how we are going to present it when we introduce people to Guix. In the manual I listed the aliases and changed several instances of ‘guix package -i’ to ‘guix install’. To me, ‘guix package’ remains unavoidable, but having ‘guix install’ in particular is important to help newcomers get started quickly. Technically, the aliases are not dumb: you cannot do, say, ‘guix install -r foo’ to remove a package. There’s little code duplication beyond ‘show-help’ and the license header. Thoughts? Rejection? Happiness? :-) Thanks, Ludo’. Ludovic Courtès (1): guix package: Add 'install', 'remove', and 'upgrade' aliases. Makefile.am | 4 ++ doc/guix.texi | 39 ++++++++++----- guix/scripts/install.scm | 81 +++++++++++++++++++++++++++++++ guix/scripts/package.scm | 11 ++++- guix/scripts/remove.scm | 78 ++++++++++++++++++++++++++++++ guix/scripts/upgrade.scm | 90 +++++++++++++++++++++++++++++++++++ po/guix/POTFILES.in | 3 ++ tests/guix-package-aliases.sh | 58 ++++++++++++++++++++++ 8 files changed, 352 insertions(+), 12 deletions(-) create mode 100644 guix/scripts/install.scm create mode 100644 guix/scripts/remove.scm create mode 100644 guix/scripts/upgrade.scm create mode 100644 tests/guix-package-aliases.sh -- 2.21.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 27 12:49:34 2019 Received: (at 35456) by debbugs.gnu.org; 27 Apr 2019 16:49:34 +0000 Received: from localhost ([127.0.0.1]:35892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKQVw-000866-Uz for submit@debbugs.gnu.org; Sat, 27 Apr 2019 12:49:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKQVu-00085n-Ra for 35456@debbugs.gnu.org; Sat, 27 Apr 2019 12:49:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKQVo-0001ns-3b; Sat, 27 Apr 2019 12:49:17 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37744 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hKQVm-0006va-Fu; Sat, 27 Apr 2019 12:49:15 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 35456@debbugs.gnu.org Subject: [PATCH 1/1] guix package: Add 'install', 'remove', and 'upgrade' aliases. Date: Sat, 27 Apr 2019 18:49:07 +0200 Message-Id: <20190427164907.14195-1-ludo@gnu.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 35456 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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 (-) * guix/scripts/install.scm, guix/scripts/remove.scm, guix/scripts/upgrade.scm, tests/guix-package-aliases.sh: New files. * Makefile.am (MODULES, SH_TESTS): Add them. * po/guix/POTFILES.in: Add them. * guix/scripts/package.scm (guix-package): Split with... (guix-package*): ... this. New procedure. * doc/guix.texi (Invoking guix package): Document them. (Binary Installation, Application Setup, Package Management) (Packages with Multiple Outputs, Package Modules) (X.509 Certificates, Installing Debugging Files): Use 'guix install' in simple examples. --- Makefile.am | 4 ++ doc/guix.texi | 39 ++++++++++----- guix/scripts/install.scm | 81 +++++++++++++++++++++++++++++++ guix/scripts/package.scm | 11 ++++- guix/scripts/remove.scm | 78 ++++++++++++++++++++++++++++++ guix/scripts/upgrade.scm | 90 +++++++++++++++++++++++++++++++++++ po/guix/POTFILES.in | 3 ++ tests/guix-package-aliases.sh | 58 ++++++++++++++++++++++ 8 files changed, 352 insertions(+), 12 deletions(-) create mode 100644 guix/scripts/install.scm create mode 100644 guix/scripts/remove.scm create mode 100644 guix/scripts/upgrade.scm create mode 100644 tests/guix-package-aliases.sh diff --git a/Makefile.am b/Makefile.am index f25900de0f..a1b97a2ca2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -223,6 +223,9 @@ MODULES = \ guix/scripts/archive.scm \ guix/scripts/import.scm \ guix/scripts/package.scm \ + guix/scripts/install.scm \ + guix/scripts/remove.scm \ + guix/scripts/upgrade.scm \ guix/scripts/gc.scm \ guix/scripts/hash.scm \ guix/scripts/pack.scm \ @@ -424,6 +427,7 @@ SH_TESTS = \ tests/guix-pack-localstatedir.sh \ tests/guix-pack-relocatable.sh \ tests/guix-package.sh \ + tests/guix-package-aliases.sh \ tests/guix-package-net.sh \ tests/guix-system.sh \ tests/guix-archive.sh \ diff --git a/doc/guix.texi b/doc/guix.texi index 238fe9741f..6e33dde5a0 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -680,7 +680,7 @@ You can confirm that Guix is working by installing a sample package into the root profile: @example -# guix package -i hello +# guix install hello @end example The @code{guix} package must remain available in @code{root}'s profile, @@ -1574,7 +1574,7 @@ available with Guix and then define the @code{GUIX_LOCPATH} environment variable: @example -$ guix package -i glibc-locales +$ guix install glibc-locales $ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale @end example @@ -1674,7 +1674,7 @@ Multiple Outputs}). For instance, the following command installs fonts for Chinese languages: @example -guix package -i font-adobe-source-han-sans:cn +guix install font-adobe-source-han-sans:cn @end example @cindex @code{xterm} @@ -2489,7 +2489,7 @@ emacs-guix, The Emacs-Guix Reference Manual}), after installing with it): @example -guix package -i emacs-guix +guix install emacs-guix @end example @menu @@ -2607,6 +2607,7 @@ is: @example guix package @var{options} @end example + @cindex transactions Primarily, @var{options} specifies the operations to be performed during the transaction. Upon completion, a new profile is created, but @@ -2620,6 +2621,22 @@ For example, to remove @code{lua} and install @code{guile} and guix package -r lua -i guile guile-cairo @end example +@cindex aliases, for @command{guix package} +For your convenience, we also provide the following aliases: + +@itemize +@item +@command{guix install} is an alias for @command{guix package -i}, +@item +@command{guix remove} is an alias for @command{guix package -r}, +@item +and @command{guix upgrade} is an alias for @command{guix package -u}. +@end itemize + +These aliases are less expressive than @command{guix package} and provide +fewer options, so in some cases you'll probably want to use @command{guix +package} directly. + @command{guix package} also supports a @dfn{declarative approach} whereby the user specifies the exact set of packages to be available and passes it @i{via} the @option{--manifest} option @@ -3309,7 +3326,7 @@ like to discuss this project, join us on @email{guix-devel@@gnu.org}. Often, packages defined in Guix have a single @dfn{output}---i.e., the source package leads to exactly one directory in the store. When running -@command{guix package -i glibc}, one installs the default output of the +@command{guix install glibc}, one installs the default output of the GNU libc package; the default output is called @code{out}, but its name can be omitted as shown in this command. In this particular case, the default output of @code{glibc} contains all the C header files, shared @@ -3325,14 +3342,14 @@ separate output, called @code{doc}. To install the main GLib output, which contains everything but the documentation, one would run: @example -guix package -i glib +guix install glib @end example @cindex documentation The command to install its documentation is: @example -guix package -i glib:doc +guix install glib:doc @end example Some packages install programs with different ``dependency footprints''. @@ -4983,7 +5000,7 @@ module exports a variable named @code{emacs}, which is bound to a The @code{(gnu packages @dots{})} module name space is automatically scanned for packages by the command-line tools. For -instance, when running @code{guix package -i emacs}, all the @code{(gnu +instance, when running @code{guix install emacs}, all the @code{(gnu packages @dots{})} modules are scanned until one that exports a package object whose name is @code{emacs} is found. This package search facility is implemented in the @code{(gnu packages)} module. @@ -23631,7 +23648,7 @@ pointed to by the @code{GIT_SSL_CAINFO} environment variable. Thus, you would typically run something like: @example -$ guix package -i nss-certs +$ guix install nss-certs $ export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs" $ export SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt" $ export GIT_SSL_CAINFO="$SSL_CERT_FILE" @@ -23642,7 +23659,7 @@ variable to point to a certificate bundle, so you would have to run something like this: @example -$ guix package -i nss-certs +$ guix install nss-certs $ export CURL_CA_BUNDLE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt" @end example @@ -25424,7 +25441,7 @@ installs the debugging information for the GNU C Library and for GNU Guile: @example -guix package -i glibc:debug guile:debug +guix install glibc:debug guile:debug @end example GDB must then be told to look for debug files in the user's profile, by diff --git a/guix/scripts/install.scm b/guix/scripts/install.scm new file mode 100644 index 0000000000..611ed1f712 --- /dev/null +++ b/guix/scripts/install.scm @@ -0,0 +1,81 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2019 Ludovic Courtès +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (guix scripts install) + #:use-module (guix ui) + #:use-module (guix scripts package) + #:use-module (guix scripts build) + #:use-module (guix scripts) + #:use-module (srfi srfi-1) + #:use-module (srfi srfi-26) + #:use-module (srfi srfi-37) + #:export (guix-install)) + +(define (show-help) + (display (G_ "Usage: guix install [OPTION] PACKAGES... +Install the given PACKAGES. +This is an alias for 'guix package -i'.\n")) + (display (G_ " + -p, --profile=PROFILE use PROFILE instead of the user's default profile")) + (display (G_ " + --bootstrap use the bootstrap Guile to build the profile")) + (display (G_ " + -v, --verbosity=LEVEL use the given verbosity LEVEL")) + (newline) + (show-build-options-help) + (newline) + (show-transformation-options-help) + (newline) + (display (G_ " + -h, --help display this help and exit")) + (display (G_ " + -V, --version display version information and exit")) + (newline) + (show-bug-report-information)) + +(define %options + ;; Specification of the command-line options. + (cons* (option '(#\h "help") #f #f + (lambda args + (show-help) + (exit 0))) + (option '(#\V "version") #f #f + (lambda args + (show-version-and-exit "guix install"))) + + ;; Preserve some of the 'guix package' options. + (append (filter (lambda (option) + (any (cut member <> (option-names option)) + '("profile" "dry-run" "verbosity" "bootstrap"))) + %package-options) + + %transformation-options + %standard-build-options))) + +(define (guix-install . args) + (define (handle-argument arg result arg-handler) + ;; Treat all non-option arguments as package specs. + (values (alist-cons 'install arg result) + arg-handler)) + + (define opts + (parse-command-line args %options + (list %package-default-options #f) + #:argument-handler handle-argument)) + + (guix-package* opts)) diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index 564236988e..aa27984ea2 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -58,7 +58,11 @@ delete-generations delete-matching-generations display-search-paths - guix-package)) + guix-package + + (%options . %package-options) + (%default-options . %package-default-options) + guix-package*)) (define %store (make-parameter #f)) @@ -899,6 +903,11 @@ processed, #f otherwise." (parse-command-line args %options (list %default-options #f) #:argument-handler handle-argument)) + (guix-package* opts)) + +(define (guix-package* opts) + "Run the 'guix package' command on OPTS, an alist resulting for command-line +option processing with 'parse-command-line'." (with-error-handling (or (process-query opts) (parameterize ((%store (open-connection)) diff --git a/guix/scripts/remove.scm b/guix/scripts/remove.scm new file mode 100644 index 0000000000..9204740d65 --- /dev/null +++ b/guix/scripts/remove.scm @@ -0,0 +1,78 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2019 Ludovic Courtès +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (guix scripts remove) + #:use-module (guix ui) + #:use-module (guix scripts package) + #:use-module (guix scripts build) + #:use-module (guix scripts) + #:use-module (srfi srfi-1) + #:use-module (srfi srfi-26) + #:use-module (srfi srfi-37) + #:export (guix-remove)) + +(define (show-help) + (display (G_ "Usage: guix remove [OPTION] PACKAGES... +Remove the given PACKAGES. +This is an alias for 'guix package -r'.\n")) + (display (G_ " + -p, --profile=PROFILE use PROFILE instead of the user's default profile")) + (display (G_ " + --bootstrap use the bootstrap Guile to build the profile")) + (display (G_ " + -v, --verbosity=LEVEL use the given verbosity LEVEL")) + (newline) + (show-build-options-help) + (newline) + (display (G_ " + -h, --help display this help and exit")) + (display (G_ " + -V, --version display version information and exit")) + (newline) + (show-bug-report-information)) + +(define %options + ;; Specification of the command-line options. + (cons* (option '(#\h "help") #f #f + (lambda args + (show-help) + (exit 0))) + (option '(#\V "version") #f #f + (lambda args + (show-version-and-exit "guix remove"))) + + ;; Preserve some of the 'guix package' options. + (append (filter (lambda (option) + (any (cut member <> (option-names option)) + '("profile" "dry-run" "verbosity" "bootstrap"))) + %package-options) + + %standard-build-options))) + +(define (guix-remove . args) + (define (handle-argument arg result arg-handler) + ;; Treat all non-option arguments as package specs. + (values (alist-cons 'remove arg result) + arg-handler)) + + (define opts + (parse-command-line args %options + (list %package-default-options #f) + #:argument-handler handle-argument)) + + (guix-package* opts)) diff --git a/guix/scripts/upgrade.scm b/guix/scripts/upgrade.scm new file mode 100644 index 0000000000..bf3b8a0710 --- /dev/null +++ b/guix/scripts/upgrade.scm @@ -0,0 +1,90 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2019 Ludovic Courtès +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (guix scripts upgrade) + #:use-module (guix ui) + #:use-module (guix scripts package) + #:use-module (guix scripts build) + #:use-module (guix scripts) + #:use-module (srfi srfi-1) + #:use-module (srfi srfi-26) + #:use-module (srfi srfi-37) + #:use-module (ice-9 match) + #:export (guix-upgrade)) + +(define (show-help) + (display (G_ "Usage: guix upgrade [OPTION] [REGEXP] +Upgrade packages that match REGEXP. +This is an alias for 'guix package -u'.\n")) + (display (G_ " + -p, --profile=PROFILE use PROFILE instead of the user's default profile")) + (display (G_ " + --bootstrap use the bootstrap Guile to build the profile")) + (display (G_ " + -v, --verbosity=LEVEL use the given verbosity LEVEL")) + (newline) + (show-build-options-help) + (newline) + (show-transformation-options-help) + (newline) + (display (G_ " + -h, --help display this help and exit")) + (display (G_ " + -V, --version display version information and exit")) + (newline) + (show-bug-report-information)) + +(define %options + ;; Specification of the command-line options. + (cons* (option '(#\h "help") #f #f + (lambda args + (show-help) + (exit 0))) + (option '(#\V "version") #f #f + (lambda args + (show-version-and-exit "guix upgrade"))) + + ;; Preserve some of the 'guix package' options. + (append (filter (lambda (option) + (any (cut member <> (option-names option)) + '("profile" "dry-run" "verbosity" "bootstrap"))) + %package-options) + + %transformation-options + %standard-build-options))) + +(define (guix-upgrade . args) + (define (handle-argument arg result arg-handler) + ;; Accept at most one non-option argument, and treat it as an upgrade + ;; regexp. + (match (assq-ref result 'upgrade) + (#f + (values (alist-cons 'upgrade arg + (alist-delete 'upgrade result)) + arg-handler)) + (_ + (leave (G_ "~A: extraneous argument~%") arg)))) + + (define opts + (parse-command-line args %options + (list `((upgrade . #f) + ,@%package-default-options) + #f) + #:argument-handler handle-argument)) + + (guix-package* opts)) diff --git a/po/guix/POTFILES.in b/po/guix/POTFILES.in index a2c89db981..91de60efc7 100644 --- a/po/guix/POTFILES.in +++ b/po/guix/POTFILES.in @@ -41,6 +41,9 @@ guix/scripts/build.scm guix/discovery.scm guix/scripts/download.scm guix/scripts/package.scm +guix/scripts/install.scm +guix/scripts/remove.scm +guix/scripts/upgrade.scm guix/scripts/gc.scm guix/scripts/hash.scm guix/scripts/import.scm diff --git a/tests/guix-package-aliases.sh b/tests/guix-package-aliases.sh new file mode 100644 index 0000000000..64ed2fbb67 --- /dev/null +++ b/tests/guix-package-aliases.sh @@ -0,0 +1,58 @@ +# GNU Guix --- Functional package management for GNU +# Copyright © 2019 Ludovic Courtès +# +# This file is part of GNU Guix. +# +# GNU Guix is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or (at +# your option) any later version. +# +# GNU Guix is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Guix. If not, see . + +# +# Test the `guix package' aliases. +# + +guix install --version + +readlink_base () +{ + basename `readlink "$1"` +} + +profile="t-profile-$$" +rm -f "$profile" + +trap 'rm -f "$profile" "$profile-"[0-9]*' EXIT + +guix install --bootstrap guile-bootstrap -p "$profile" +test -x "$profile/bin/guile" + +# Make sure '-r' isn't passed as-is to 'guix package'. +if guix install -r guile-bootstrap -p "$profile" --bootstrap +then false; else true; fi +test -x "$profile/bin/guile" + +guix upgrade --version +guix upgrade -n +guix upgrade gui.e -n +if guix upgrade foo bar -n; +then false; else true; fi + +guix remove --version +guix remove --bootstrap guile-bootstrap -p "$profile" +! test -x "$profile/bin/guile" +test `guix package -p "$profile" -I | wc -l` -eq 0 + +if guix remove -p "$profile" this-is-not-installed --bootstrap +then false; else true; fi + +if guix remove -i guile-bootstrap -p "$profile" --bootstrap +then false; else true; fi -- 2.21.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 27 17:31:45 2019 Received: (at 35456) by debbugs.gnu.org; 27 Apr 2019 21:31:45 +0000 Received: from localhost ([127.0.0.1]:36156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKUvB-0004x4-7B for submit@debbugs.gnu.org; Sat, 27 Apr 2019 17:31:45 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKUv9-0004ww-D8 for 35456@debbugs.gnu.org; Sat, 27 Apr 2019 17:31:44 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1556400671; cv=none; d=zoho.com; s=zohoarc; b=ZEwOcn+c5xm8hNH+MCP3splXJCTjsOEi1y1o/RIaslw/Ef9FTC/dC7daFXw8xLosrd+kIUkkMoA/1rPAp96keqv0iBLPmwDkhCoDL8/w4VqVO/Sr3jWqiPw1OM6WodxPRjqMf3gxzSlyp+jD0kc2sTw67SkWJ6oUte6Coxib3EA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556400671; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=xE11pmgIVwCgja1iFwytW3SLtYUsEFWKueU/gBTCzWU=; b=VtKaFqdLLpyqLyaYm+1c+6fVCRRwBD8RoLAxCFzPjeyohDNb2gKTfqGeD2qGZC3kCMRZ2oakNhNldySEHBbYWIdpi91GAYfdfNW+dzz//K4oqb9/JC2hc+h65yhZ9ApDmZP0JT4N0T+z7fPdSYmn5F+6Cr+jkIf/ksKIdx92G68= 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=1556400671; 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=2829; bh=xE11pmgIVwCgja1iFwytW3SLtYUsEFWKueU/gBTCzWU=; b=Bd+ayA4LIG68tPKiTOZwQg6iM+RvkhCDjKNH+PEj3H1TaIbQ/82gjTLSie6EYB9x 6hlnSZ624cJQDllqEtv79tBMtMApvnqkQ7y1OWTNLDd2+vgI+Rz9lUZK5jZvLZ44kXq a0X+YX9rfzGGZjRYe46RwRStHISZQ46jt3R5X0WA= Received: from localhost (p54AD42A7.dip0.t-ipconnect.de [84.173.66.167]) by mx.zohomail.com with SMTPS id 1556400670657157.8366986806859; Sat, 27 Apr 2019 14:31:10 -0700 (PDT) References: <20190427162500.13554-1-ludo@gnu.org> <20190427164907.14195-1-ludo@gnu.org> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#35456] [PATCH 1/1] guix package: Add 'install', 'remove', and 'upgrade' aliases. In-reply-to: <20190427164907.14195-1-ludo@gnu.org> 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: Sat, 27 Apr 2019 23:31:07 +0200 Message-ID: <87d0l72l0k.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-Debbugs-Envelope-To: 35456 Cc: 35456@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: -1.0 (-) Ludovic Court=C3=A8s writes: > * guix/scripts/install.scm, guix/scripts/remove.scm, > guix/scripts/upgrade.scm, tests/guix-package-aliases.sh: New files. > * Makefile.am (MODULES, SH_TESTS): Add them. > * po/guix/POTFILES.in: Add them. > * guix/scripts/package.scm (guix-package): Split with... > (guix-package*): ... this. New procedure. > * doc/guix.texi (Invoking guix package): Document them. > (Binary Installation, Application Setup, Package Management) > (Packages with Multiple Outputs, Package Modules) > (X.509 Certificates, Installing Debugging Files): Use 'guix install' in > simple examples. I like it! > diff --git a/guix/scripts/install.scm b/guix/scripts/install.scm > new file mode 100644 > index 0000000000..611ed1f712 > --- /dev/null > +++ b/guix/scripts/install.scm [=E2=80=A6] > +(define (show-help) > + (display (G_ "Usage: guix install [OPTION] PACKAGES... > +Install the given PACKAGES. > +This is an alias for 'guix package -i'.\n")) > + (display (G_ " > + -p, --profile=3DPROFILE use PROFILE instead of the user's default pro= file")) > + (display (G_ " > + --bootstrap use the bootstrap Guile to build the profile")) I have to admit that I never use =E2=80=9C--bootstrap=E2=80=9D. You alread= y removed many advanced options of =E2=80=9Cguix package=E2=80=9D from this alias. W= ould it make sense to also remove this one? (I don=E2=80=99t feel strongly about this.) > diff --git a/guix/scripts/remove.scm b/guix/scripts/remove.scm > new file mode 100644 > index 0000000000..9204740d65 > --- /dev/null > +++ b/guix/scripts/remove.scm [=E2=80=A6] > +(define (show-help) > + (display (G_ "Usage: guix remove [OPTION] PACKAGES... > +Remove the given PACKAGES. > +This is an alias for 'guix package -r'.\n")) > + (display (G_ " > + -p, --profile=3DPROFILE use PROFILE instead of the user's default pro= file")) > + (display (G_ " > + --bootstrap use the bootstrap Guile to build the profile")) Same here=E2=80=A6. > diff --git a/guix/scripts/upgrade.scm b/guix/scripts/upgrade.scm > new file mode 100644 > index 0000000000..bf3b8a0710 > --- /dev/null > +++ b/guix/scripts/upgrade.scm [=E2=80=A6] > +(define (show-help) > + (display (G_ "Usage: guix upgrade [OPTION] [REGEXP] > +Upgrade packages that match REGEXP. > +This is an alias for 'guix package -u'.\n")) > + (display (G_ " > + -p, --profile=3DPROFILE use PROFILE instead of the user's default pro= file")) > + (display (G_ " > + --bootstrap use the bootstrap Guile to build the profile")) =E2=80=A6and here. Aside from that it looks good to me. I expect this to be a very welcome change for my colleagues who often typed =E2=80=9Cguix install=E2=80=9D onl= y to correct it to =E2=80=9Cguix package -i=E2=80=9D after an error. -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 27 18:06:52 2019 Received: (at 35456) by debbugs.gnu.org; 27 Apr 2019 22:06:52 +0000 Received: from localhost ([127.0.0.1]:36209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKVTA-0005pj-4x for submit@debbugs.gnu.org; Sat, 27 Apr 2019 18:06:52 -0400 Received: from tobias.gr ([80.241.217.52]:54290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKVT6-0005pX-8F for 35456@debbugs.gnu.org; Sat, 27 Apr 2019 18:06:51 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id eb2f22fd; Sat, 27 Apr 2019 22:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=Xo2ZX5zwJhg3NcILLT/oM+ P46npAqLUpLVgSMjJMLiY=; b=d4yCqX4b4oLVVpa2xIXI6HV+uxflpQ1Ipkywwj QactyHmh+VBUZC866cY2G0U1ZdKnLTXmNKDi4A+iR0WG49RN+ddPS/Gs07IRvCyW d82hJc1t94fJ/NVxA+KyaF0rPc0YR+AzKaQciVoMusol8J4it2WMp+CfMIOXMaL9 qZdmHJLZdSEwlaSzbxNiM3MWv4OkFuoDeoJpmP2T/BD3C17Su5gi+NjPdGfJlV6I vzWfNP8kt19xTf6f4LO0VwUtDphY+YaMr50Kfw6HkuDmVnTQB4eSboWfhRRESnPm FVtcVxl+N8iNA6VOIrox4ODBaIHI4unehT9GmqjWkAlpVbGg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 01058c1f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 27 Apr 2019 22:06:43 +0000 (UTC) From: Tobias Geerinckx-Rice To: Ludovic =?utf-8?Q?Court=C3=A8s?= , 35456@debbugs.gnu.org Subject: Re: [bug#35456] [PATCH 1/1] guix package: Add 'install', 'remove', and 'upgrade' aliases. References: <20190427162500.13554-1-ludo@gnu.org> <20190427164907.14195-1-ludo@gnu.org> <87d0l72l0k.fsf@elephly.net> In-reply-to: <87d0l72l0k.fsf@elephly.net> Date: Sun, 28 Apr 2019 00:06:42 +0200 Message-ID: <87wojff6h9.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35456 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 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Ludo', Ricardo, Ricardo Wurmus wrote: > I have to admit that I never use =E2=80=9C--bootstrap=E2=80=9D. You alre= ady=20 > removed > many advanced options of =E2=80=9Cguix package=E2=80=9D from this alias. = Would=20 > it make > sense to also remove this one? +1 > (I don=E2=80=99t feel strongly about this.) +6 Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXMTScwAKCRANsP+IT1Vt eacXAQD9NYilsghNHKcFaATrJMcNRhpZ5bBOyYeBQIc+OrejMgEAlbTpyB97mIeb tpNqBG3hFGBLKpEV77nRjT4rk9ELfQA= =qk5w -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 28 06:52:35 2019 Received: (at 35456) by debbugs.gnu.org; 28 Apr 2019 10:52:35 +0000 Received: from localhost ([127.0.0.1]:36797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKhQA-0001Rs-PD for submit@debbugs.gnu.org; Sun, 28 Apr 2019 06:52:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKhQ9-0001Rg-5m for 35456@debbugs.gnu.org; Sun, 28 Apr 2019 06:52:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKhQ3-0004jv-HA; Sun, 28 Apr 2019 06:52:27 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39472 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hKhQ0-0002RB-9q; Sun, 28 Apr 2019 06:52:25 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: [bug#35456] [PATCH 1/1] guix package: Add 'install', 'remove', and 'upgrade' aliases. References: <20190427162500.13554-1-ludo@gnu.org> <20190427164907.14195-1-ludo@gnu.org> <87d0l72l0k.fsf@elephly.net> Date: Sun, 28 Apr 2019 12:52:19 +0200 In-Reply-To: <87d0l72l0k.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, 27 Apr 2019 23:31:07 +0200") Message-ID: <8736m2csgs.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (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: 35456 Cc: 35456@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! Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: > >> * guix/scripts/install.scm, guix/scripts/remove.scm, >> guix/scripts/upgrade.scm, tests/guix-package-aliases.sh: New files. >> * Makefile.am (MODULES, SH_TESTS): Add them. >> * po/guix/POTFILES.in: Add them. >> * guix/scripts/package.scm (guix-package): Split with... >> (guix-package*): ... this. New procedure. >> * doc/guix.texi (Invoking guix package): Document them. >> (Binary Installation, Application Setup, Package Management) >> (Packages with Multiple Outputs, Package Modules) >> (X.509 Certificates, Installing Debugging Files): Use 'guix install' in >> simple examples. > > I like it! Cool! >> diff --git a/guix/scripts/install.scm b/guix/scripts/install.scm >> new file mode 100644 >> index 0000000000..611ed1f712 >> --- /dev/null >> +++ b/guix/scripts/install.scm > [=E2=80=A6] >> +(define (show-help) >> + (display (G_ "Usage: guix install [OPTION] PACKAGES... >> +Install the given PACKAGES. >> +This is an alias for 'guix package -i'.\n")) >> + (display (G_ " >> + -p, --profile=3DPROFILE use PROFILE instead of the user's default pr= ofile")) >> + (display (G_ " >> + --bootstrap use the bootstrap Guile to build the profile")) > > I have to admit that I never use =E2=80=9C--bootstrap=E2=80=9D. You alre= ady removed > many advanced options of =E2=80=9Cguix package=E2=80=9D from this alias. = Would it make > sense to also remove this one? It=E2=80=99s used only for tests in fact, where we don=E2=80=99t want to re= build the world just to run profile hooks. Perhaps we could simply remove it from the =E2=80=98--help=E2=80=99 output, WDYT? > Aside from that it looks good to me. I expect this to be a very welcome > change for my colleagues who often typed =E2=80=9Cguix install=E2=80=9D o= nly to correct > it to =E2=80=9Cguix package -i=E2=80=9D after an error. Heheh, I guess they=E2=80=99re not the only ones. :-) Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 28 07:27:02 2019 Received: (at submit) by debbugs.gnu.org; 28 Apr 2019 11:27:02 +0000 Received: from localhost ([127.0.0.1]:36823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKhxV-0002Iz-MO for submit@debbugs.gnu.org; Sun, 28 Apr 2019 07:27:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKhxU-0002Il-BH for submit@debbugs.gnu.org; Sun, 28 Apr 2019 07:27:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:33419) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKhxO-0004IM-5D for submit@debbugs.gnu.org; Sun, 28 Apr 2019 07:26:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKhxN-0005yN-2h for guix-patches@gnu.org; Sun, 28 Apr 2019 07:26:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKhxL-0004HW-5K for guix-patches@gnu.org; Sun, 28 Apr 2019 07:26:53 -0400 Received: from mout.web.de ([212.227.15.14]:33531) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKhxJ-0004GA-3M for guix-patches@gnu.org; Sun, 28 Apr 2019 07:26:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1556450803; bh=4ZMMz89H7twI7WdHDQYQgAw2dAOoVTptTBF/R0z1OMg=; h=X-UI-Sender-Class:To:References:From:Subject:Date:In-Reply-To; b=resMrh2g8LQGxBiX/R0Jlf7iZ4vI/Fky8QEhy5kbdi/x3XNEwp4yYh9EtoPVd2lwb +f7/xvVoWvC7OYOux12+BCfXXPa+EUzh7vfErN5wNljAJ/xhQD2G4uo3D6rf1JeSyy cHEFWe9myBM73GFuHD4At8u+yVQ1z0oUAEttAHlI= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.178.109] ([88.130.153.48]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MQc7J-1hCp2c2K4r-00U5Cs for ; Sun, 28 Apr 2019 13:26:43 +0200 To: guix-patches@gnu.org References: <20190427162500.13554-1-ludo@gnu.org> From: Jonathan Brielmaier Openpgp: preference=signencrypt Autocrypt: addr=jonathan.brielmaier@web.de; prefer-encrypt=mutual; keydata= mQENBFLri3sBCAC70cM07IJUQ2ZJaIsJy3gIDyNhtbRCFuu5zpuzhbqQ/+CsNX7zFGRn47xx O/QnByEA5FIUspgXFaSX72tMGD1MnydJ6PO+i1OuspEcpneqtaIn74TWq/tJxwll0A8qwJXD HZ9r4lQrTsJkUkaWgIeWJfwy2bi/Eu2RwcgApa3fKCBXbNCIif1/LkM6Y9xH7vedYiSE6yDs Tuy5xQmZqkoRnpr/Gfc0JrNFRWZr99VNIHDvIkqczfuYHqfCTxndFbc9WjBj7XgumAi/4Il5 RaUHlBpG19IV0kO8OfJxyfLvOa1vjX0vTXt5WxpnCXk/r7Fux0BwImFbysCEjL+picGPABEB AAG0JGpvbnNnZXIgPGpvbmF0aGFuLmJyaWVsbWFpZXJAd2ViLmRlPokBVQQTAQIAPwIbIwYL CQgHAwIGFQgCCQoLBBYCAwECHgECF4AWIQSBQWA26Bpc94+AEHHs/IOYi05LnwUCXFH90gUJ Esxz1wAKCRDs/IOYi05Ln7qjB/wJFisIwE7ZTy5d0nRsxvKQIHxs2LQMLhCtmkUVXiQK3rjz pk+JqLZCo/RI9tlN0p2oLIP6y5kLrT/hn10BUuYtONvWrBHyiF0BIHp6yowj0YE+UpsSlfDT LwQet/cDYFwxkRCS7oHQMRVSXIAcKY8mvzRB7JYlqGPsQRJRb5weVVvFpjBWnB43m6C5n7+Y mlpcLgG+FPlmGNpXa7Lpa1tIUfuy2VVHVJeGlOIPw/hMx7L68lK08tSANQa2DdfcSntZRPP9 Wjmn/nm7WfMM3QJwN0Zsv/Ki+X8WcuQ4plqsHuGaWxJeIHFW1+e/sIBItGtDSrENez3Z9E8W OwBDOFsquQENBFLri3sBCACwZ6+JWOTtYCKURCtuNbmxwvxTmePYmJy1ROX3FUAkp5sp93XB h4Qx2K0kjn2pVvMXRCC8SYF3If/xhVJ/Bl7VdZB8AZlBXdxLfYiFcmqqDphPZcRuVb2uRNXl JbGzXkWIzNUL5uRZj/Gepqj6+OiriskW6ebj0bgc3XJ6aJs/Y2Y6O7AcTdA6FA8KNi5iRfq7 boBGXBqSayP+pDx9IeAByJVMf1Uo9qbVnM7jvHckzfpsHsaYtpb6qKP2TfpD4jpafoS7Jg/n pgGwtrSVPG6bO7pUA10acAt2MllEgNiniOSClfBTH7mzOzzm5JJwO62Z5KCdIDGm0KfxlHkC UWN9ABEBAAGJATwEGAECACYCGwwWIQSBQWA26Bpc94+AEHHs/IOYi05LnwUCXKvQbAUJEyZG cQAKCRDs/IOYi05Ln0ucB/0dDF9N9duQRae2NiKuw5jkrUG8QHkC1SzejdmjnqBwPiivkp0J AxNg1j3BNBmwO/pH5g9UqIfGi691wl3RFev2ucOP3CkwdWkbFQg1TyfkjWI83DFH9WiuT14M l8W+uW7waIlekXbUn7ZFj1hCE7aasoI2iA79XYaNigInzg+quDUXOllReCClK62lZ9CoSIeO o1qM/R4/sxlDsopqrcmTVbxdvv+VVWANAIoHJ7hxIe+0YTk3QoHpWkU1tB44zzHpSgZe1Q1F 5T0FmPyJsl/HF+Z8PTPyBQqXVL6IVtDDhh93pX++m9bMOTPD+mlysIXGpCZ7rwck+7t1zSAP bti7 Subject: Re: [bug#35456] [PATCH 0/1] Add 'guix install', 'guix remove', and 'guix upgrade' Message-ID: Date: Sun, 28 Apr 2019 13:26:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190427162500.13554-1-ludo@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:WuHOJ7Jfk4u/nIPnfV/R/Fhu5pW20f2+oFJlu+zfeU8yNpqlxwg dhasaZrAFvnp0P0Yc/TdYAKx/DdI4grkMwu9zObZTRDix7wWL16/09xQMtvGdIbZgMlAMMF Mcr4PyF9oHgY3mc/3voXNY3Wfy4mt6UqkFMqAESs6w1my01ndLXRbUZvILhzGkxtLBpND0D Q/0Vq1UHYFXrggixdq8AA== X-UI-Out-Filterresults: notjunk:1;V03:K0:lMuY/l2KxZc=:4JtZ14YSi6iW8d9Nm+vagz c9MZnDsu7g+qYZI904EelAR0tdq8xxlBqs8cpGOs2avcugJ8ncUS+/0uP2AsPDSows6uVubFr Gj3/78ALrvg47ptkI5H7RuzvWZVrxTHblh48VqgVnrVyjezre0R8nn41F7n4Qul4m8KDgg2Vp 1bFMuKFYcbAyOuBFcoXRQtkeLMdoP1iJiGU61PjUXinmIcOSHSXjy0gSEd1tFEIUPOGTwD7Ew u14eO2eNk0znPNTNnyGoAQDFvj9jE/tRKGjdIdPkHbQY6UpxHMnvIMas2AL3t3Zgu1WcMkSVY xgYCTjpRWZWweKSJLyU2qJYwokcmPHuxhqBF0yOj1NNhlzH4XZizR/OsUjSz3pN+QRqD96m+n Hghqcv+WnlJi0Ewv5w3thUlDWgCIptMyuITy6Qiz/702ziRcg6AqWeo58NbzOIwqGt/Nm2Dqm yXl/SpXdojzFRQ6gmbdlkA+AsafdDGnAs0YZyV5AJPVDewFZY79CAOmNQcPPg536j14TelCcA VBmlGqCpkd1ITMZeAWebuq+vZGBq8lSTOZV6JUUc7U0lruy1vcbDPpRX5jbryHFBdS1JnpE22 TaijzUOofQbdp5GyTM2ayap7t11JdHmaveaygg+avEbabscHHXLbxmBhLFBOP50cH9ThCPYmP RPT/hdqAmQSl7V7qsGu9u9ZCsZGENOeaXgkZj5TSU0xHWUgv7LgyVS59JbhrAlLyF+TLixm8K lkhzAfn8FtCPkRVlMco8+PwUQYApMh9pI+QKIjNKlCpjMQ2Qx2qmnFIWED11AzDsOYo+8Rdcl eN/VGT39GRoFt2CMcvjEKKJhWuK3hPfMTHRWkgPZRVcWxE0Ql3da9vCJXqPma1rgXkrlkrv/k EWi05F+p7WPgk8v7N3zK2pstfagUbMeCIUqaRxUlO5e0ZVhYN83lxCWV44im1xYVMLpmur7/G jqdImH1EKWcwjzlEeWICYXqD1DcICC+U= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.14 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.4 (-) 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: -2.4 (--) On 4/27/19 6:25 PM, Ludovic Court=C3=A8s wrote: > Thoughts? Rejection? Happiness? :-) I think we shouldn't do this for the 1.0 release. We should take some time here. One reason is that it's quite some work to get this documented and then translated... The idea of offering new commands for often used ones, is very good. Personally I would also like to have 'guix search' and 'guix show', as I use them quite often :) What I like about the guix command line interface, is the consistency and logic. Especially if I compare it with some random (open)SUSE tool like zypper, which has a almost 50 subcommands ("zypper SUBCOMMAND"). That's something we shouldn't imitate. I feel that grouping commands in subcommands and subsubcommands like with 'guix system' is a good idea. At the moment I see there some room for improvement. We have a lot of developer commands directly under 'guix', like download, link etc. But the most "end-user" commands are under 'guix package' or 'guix system'... For 'guix system' it could make sense to move 'guix system {container,vm-image,disk,docker-image}' to something like 'guix create'. Just my five cents :) Jonathan From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 28 09:26:51 2019 Received: (at 35456) by debbugs.gnu.org; 28 Apr 2019 13:26:51 +0000 Received: from localhost ([127.0.0.1]:36916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKjpS-0000sG-S7 for submit@debbugs.gnu.org; Sun, 28 Apr 2019 09:26:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKjpR-0000s3-8V for 35456@debbugs.gnu.org; Sun, 28 Apr 2019 09:26:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKjpM-0003qP-30; Sun, 28 Apr 2019 09:26:44 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39936 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hKjpL-0008Nk-Fw; Sun, 28 Apr 2019 09:26:43 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jonathan Brielmaier Subject: Re: [bug#35456] [PATCH 0/1] Add 'guix install', 'guix remove', and 'guix upgrade' References: <20190427162500.13554-1-ludo@gnu.org> Date: Sun, 28 Apr 2019 15:26:41 +0200 In-Reply-To: (Jonathan Brielmaier's message of "Sun, 28 Apr 2019 13:26:42 +0200") Message-ID: <87tvei9s6m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (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: 35456 Cc: 35456@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 Jonathan, Jonathan Brielmaier skribis: > On 4/27/19 6:25 PM, Ludovic Court=C3=A8s wrote: >> Thoughts? Rejection? Happiness? :-) > > I think we shouldn't do this for the 1.0 release. We should take some > time here. One reason is that it's quite some work to get this > documented and then translated... The patch provides documentation that boils down to ~10 lines since these are just aliases. (Also, I think it=E2=80=99s reasonable to say we t= ook our time: it had been in =E2=80=981.0.org=E2=80=99 since July 2018 and we= =E2=80=99ve been discussing it for years before that. :-)) > The idea of offering new commands for often used ones, is very good. > Personally I would also like to have 'guix search' and 'guix show', as I > use them quite often :) Yeah, why not. > What I like about the guix command line interface, is the consistency > and logic. Especially if I compare it with some random (open)SUSE tool > like zypper, which has a almost 50 subcommands ("zypper SUBCOMMAND"). > That's something we shouldn't imitate. > > I feel that grouping commands in subcommands and subsubcommands like > with 'guix system' is a good idea. At the moment I see there some room > for improvement. > > We have a lot of developer commands directly under 'guix', like > download, link etc. But the most "end-user" commands are under 'guix > package' or 'guix system'... > > For 'guix system' it could make sense to move 'guix system > {container,vm-image,disk,docker-image}' to something like 'guix create'. I agree the CLI structure could be improved in several areas. In fact, there have been radical proposals in the past to overhaul the whole CLI. I think =E2=80=9Cguix install=E2=80=9D & co. require special attention thou= gh: people have come to expect install/remove/upgrade sub-commands from their package manager and these are the first commands they=E2=80=99ll run. It c= osts us very little in terms of maintenance, but it certainly helps newcomers get started. Does that make sense? Thanks for your feedback! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 29 03:42:16 2019 Received: (at 35456) by debbugs.gnu.org; 29 Apr 2019 07:42:17 +0000 Received: from localhost ([127.0.0.1]:38321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL0vY-0000NF-HH for submit@debbugs.gnu.org; Mon, 29 Apr 2019 03:42:16 -0400 Received: from mout.web.de ([212.227.15.14]:35661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL0vW-0000N2-Td for 35456@debbugs.gnu.org; Mon, 29 Apr 2019 03:42:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1556523727; bh=4tCrQdQgEaAqSXuRf3T+8i5bTkQ2di0t6/4GLb+uWto=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=lm3h5UwGqdpbxL5GCs+m0JopxvGFtTwDdT4tUq35Wh/kseI/rNv6RjGdIPQMPtXVx zQ5qTShbv6my2KnBPI1DWZHqHIgJ4MFAFLr84YF25BgeHydhQY7BXELCUGbykoa3qp tw9aiJso/RvzQdSkmNjbMOS7XBp3WYOrZc1zTiYA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [10.254.72.104] ([2.247.252.104]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M7ssy-1gYZ4h13eS-00vQLi; Mon, 29 Apr 2019 09:42:07 +0200 Subject: Re: [bug#35456] [PATCH 0/1] Add 'guix install', 'guix remove', and 'guix upgrade' To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= References: <20190427162500.13554-1-ludo@gnu.org> <87tvei9s6m.fsf@gnu.org> From: Jonathan Brielmaier Message-ID: Date: Mon, 29 Apr 2019 09:42:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <87tvei9s6m.fsf@gnu.org> Content-Type: multipart/mixed; boundary="------------7B1BF8349AD34CBF63BD9A1E" Content-Language: en-US X-Provags-ID: V03:K1:5+G0Tp1pKjeJcIE1jSS/KzQzAHCIavA/ZusG79KfweJiJVFf0T7 u7qGw/qy2AIeM0AkNLBMd+C9elg6VzD9npFUmlakOqQWjtJHTkR1ZWMspEokzJWlUuoguL9 0+XaVOv3AjF3u0je7NDhNqiOnjd6Mi2r00/VHDuwUb9sjzAqvC655L2RIhKyn/qjtFqDQI2 fDhDncZjZ/CN2EEl/Xy3A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:fQRa/V+DWFU=:zpfJ8a/N1W0Jl3ivH35q1m 4vXTSd0O4Gtc/P8s4fdQDIebvZJH3jE60VRvtpj/OvBRYVmwNGKGx3UvMWkP5Lb9fWlB63xR+ ro+INEyh6PIzX8XPvXEF9hUWtwHbu8g7CrGuqjzNpjPoTdONm8xzKhdiYBpAsA0Qg6QOce1IN lB9Kv//+fA4rEbXzb4dRhpPRfB3ar9AuFQGKOTgwuCxzO7bAmKuV/OqZ1kKuyLzuy7Bvt22AA d3mkILQ9B6C8eP4KMYARExhUZ9YqchMCzp8aPfMPbAumYV1UQ5wMR8LRn4i2Y6PCRNYZDt9Rc GoGZxuwIv4/II1up3eVeyB+80Iw+xdDWFM9cryM9CQKacXtBzDMqxzv6a1T7LpgSe0qro23Qz zPIPuFkuc9BURBIRDOKe9lesfloQoHB1ER8PHHB7hSVtvTLouYVfEXxih8gou2pyQvV9UqcnZ JP9Dy13R7depzF2k4rVKgHTbgbXU5chJdu7FQJ9jJX5BzNUKxlhUpFtitM91oWzZUcY9FtQRx cSZ1oYd1UdyNfjHvnkNt6+AJ/xMYr793YfRH8U24yOW6edd5ub/AV81RDNlF3WjDPsNmGIWjp Tz596z4RFUwVjK4QWkpj4Y+XjFyawqUHlv4YleZATpCcFObNw2B6081x/q/1mEOeyNhjQ9Oxu xoLXJE1KYTrPR5BLWpBLACeUFn3SZ1pp+yR0idBOaUGeVOJQ35fGH69WPoD1Gz2v971S4EcyN gHz9LLAbJuqjvugsOHkJcpAzcUkDTFOjU/LYVN9RdMurOtDaUdJS82BjlxcnXX7acIwfheOOF aaI4ei8gHH6DE4T2DsTgSWGvj/aiPJPZ04BU8gf0Gx/y3OKX+vKL8T2xuSfynGIv5A3NmnhNY vZ2VJV3r+Ws1ACsqgXr48d7mlbRrrzYO6jhBHOjUhhR+QXCsfMe9UAxLIiiOrc X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35456 Cc: 35456@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: -1.7 (-) This is a multi-part message in MIME format. --------------7B1BF8349AD34CBF63BD9A1E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > I agree the CLI structure could be improved in several areas. In fact,= > there have been radical proposals in the past to overhaul the whole CLI= =2E >=20 > I think =E2=80=9Cguix install=E2=80=9D & co. require special attention = though: people > have come to expect install/remove/upgrade sub-commands from their > package manager and these are the first commands they=E2=80=99ll run. = It costs > us very little in terms of maintenance, but it certainly helps newcomer= s > get started. >=20 > Does that make sense? If you are so confident, go ahead and make me happy by adding at least 'guix search' :) --------------7B1BF8349AD34CBF63BD9A1E Content-Type: application/pgp-keys; name="pEpkey.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="pEpkey.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- mQENBFyn0d4BCACVGOMJduxIdpp6Y19xP+oaJZtlMK7wLOubYv9KhOn+wnmUsHUb 5Jcv3+gwN8DO1F0fR3xCoDBX9qyBUGl85tn9uVaaBEau+wfBtXsUoKHasAMfSNpY Tyc3+BdmUj6R5GMV/bAwVcHNLxdh6tzFPk7S3OVMEzIi7hIm8x151K7SyO7z1kYq rD5aES+AWva6BFWn+AuugBHwPelDsiCXaZTCY9fKllEx77bWP98iZ+hu3rUnZ6/X F0drrnzn1laDj4cU+INPVvrd03hVeiVWUP29WNNGKVigFam0cYfynuKqjuGsCoj6 78vyemFF16NCx7FblMi91TPC2NXN1JRoRbbhABEBAAG0MEpvbmF0aGFuIEJyaWVs bWFpZXIgPGpvbmF0aGFuLmJyaWVsbWFpZXJAd2ViLmRlPokBVAQTAQgAPhYhBPSJ 1hUa/lLWkdi5/3vwSh0b8WN0BQJcp9HfAhsDBQkB4TOABQsJCAcCBhUKCQgLAgQW AgMBAh4BAheAAAoJEHvwSh0b8WN0fXoH/RjqdBzO/iS39uOgtRMNSedRyFZrC6MH 9g+sn1HxntZ3VJ0GzjWADa63ikZK7mpnj3tlvtZ8mNgyfKM/UC6avA9vylh9fPpQ vUVs/Bwq+pLrUgvggOJqQRq8voK4L9esgk215Xawfd84+ad4AUVMu1R/BYBq9Ncv xZiL0WYfWThxr9IwcHGBGrBxlmB0qQFC8M7Hxo9sMSmzOS6z7xa/znuSn3zGV2qu 4J3DL0aB3nMCzgMxMApxfHYib+xp2CPxBKGR/S6D/9VyH/4/07dkn83PFeB0qmNS 8X1Kh3LAG4v+6tCA2UsN7Z3yk1sCZI0AnVtV5cSm9cGFOnhqPckJro65AQ0EXKfR 3gEIAKpS/lW92rcJZwxaGU+LiIPx+5uuumLSE3HsuxVPr6GIpfT9q5p3dKhPQxkW 6fFY6YKcVrVAUv8ccaPDoxZkMeBY/6hjwnP42l1WJgCJlueMcOy9/Kk++OmiMIXE OIWnjyH5QRHdaLAkNTHZOTdtmoT6JJ/yD7Pjveh08YvbyYxr2Iz6T60Y8HCGxyGg eyk5rZGjLPsIsRHUYEg0VTEKkHD1px/eLEluF/QYuvQcfBcPKaHIa1mvfBPQCScc jYyyHqeFZ8PbuYpPFxS9+rqehdAKXMQr1P10Ep/n1CV57sMuIc69s78eNYguurpL c6Y7VrZ1WAHwdwvtlaXHMFBWl10AEQEAAYkBPAQYAQgAJhYhBPSJ1hUa/lLWkdi5 /3vwSh0b8WN0BQJcp9HeAhsMBQkB4TOAAAoJEHvwSh0b8WN0USAIAIJ1ptgU2AzN 2S3bT8NTFcFsq5PpvlYYIBQETfzG4HRrEIPC70VCsZ7RJZrSlp5khQ9ur4OAvIna XIzBBPFVYYe212uVQOtq3NdCiqWs+2uj1vcS218qPxjeAjkN93Y/zO01cUbGhXnR euBB5fTN62gyVb03hWdMG/l+oHJ7oftHMArnALFt/CoXr/C5FHleJeFak8gZksfg uDhqQfAktLTQtNLlEf9AvPLErFn8XI8udzcDCfEcxq3mVv9Zw+8YmmF3XLgBG6on 2CK0bOhdk5SyRPKdldHt40nGtDZqOY8ivjKl7zUJ8IQdTVcU1lixbxW8dwIy+Blf aQ6KDvP8oro=3D =3DzevK -----END PGP PUBLIC KEY BLOCK----- --------------7B1BF8349AD34CBF63BD9A1E-- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 29 04:22:52 2019 Received: (at 35456-done) by debbugs.gnu.org; 29 Apr 2019 08:22:52 +0000 Received: from localhost ([127.0.0.1]:38365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL1Yp-0001M7-ON for submit@debbugs.gnu.org; Mon, 29 Apr 2019 04:22:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL1Yo-0001Lv-4m for 35456-done@debbugs.gnu.org; Mon, 29 Apr 2019 04:22:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL1Yi-0005OI-Qq; Mon, 29 Apr 2019 04:22:44 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=48536 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hL1Yi-0006qR-Fb; Mon, 29 Apr 2019 04:22:44 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus , Jonathan Brielmaier Subject: Re: [bug#35456] [PATCH 1/1] guix package: Add 'install', 'remove', and 'upgrade' aliases. References: <20190427162500.13554-1-ludo@gnu.org> <20190427164907.14195-1-ludo@gnu.org> <87d0l72l0k.fsf@elephly.net> <8736m2csgs.fsf@gnu.org> Date: Mon, 29 Apr 2019 10:22:42 +0200 In-Reply-To: <8736m2csgs.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 28 Apr 2019 12:52:19 +0200") Message-ID: <87ftq1i5kd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (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: 35456-done Cc: 35456-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 (---) Hello! Ludovic Court=C3=A8s skribis: > Ricardo Wurmus skribis: [...] >> I have to admit that I never use =E2=80=9C--bootstrap=E2=80=9D. You alr= eady removed >> many advanced options of =E2=80=9Cguix package=E2=80=9D from this alias.= Would it make >> sense to also remove this one? > > It=E2=80=99s used only for tests in fact, where we don=E2=80=99t want to = rebuild the > world just to run profile hooks. Perhaps we could simply remove it from > the =E2=80=98--help=E2=80=99 output, WDYT? I did that and removed it altogether from =E2=80=98guix upgrade=E2=80=99 si= nce there are no tests using it. I also updated the Bash completion. Jonathan Brielmaier skribis: > If you are so confident, go ahead and make me happy by adding at least > 'guix search' :) Heheh thanks. :-) It also occurred to me that =E2=80=98guix search=E2=80=99 would be logical = as well, since that=E2=80=99s, again, one of the first commands one runs. I=E2=80= =99ll send a patch for that and then I=E2=80=99ll stop here, I promise! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 29 11:05:44 2019 Received: (at 35456) by debbugs.gnu.org; 29 Apr 2019 15:05:44 +0000 Received: from localhost ([127.0.0.1]:39483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL7qf-0005G0-9B for submit@debbugs.gnu.org; Mon, 29 Apr 2019 11:05:42 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:41966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL6O2-0002fB-6K for 35456@debbugs.gnu.org; Mon, 29 Apr 2019 09:32:04 -0400 Received: by mail-qk1-f193.google.com with SMTP id l199so5885543qke.8 for <35456@debbugs.gnu.org>; Mon, 29 Apr 2019 06:32:02 -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=TvkjR5IPFH8TBqCVWQyHkMar3kf0aZ6W6YraC5H79/s=; b=bMeyV2lNCaPMx+poFuMlF8wlrE9rjAtmMQQ25x7tsYg69GKeY1h0nS5LkZzFqGB49k tPaYR0D8ZyXgtX9f77Zcr1l75cng7M9KmNZWdM8pDaPaPnncocHhUfh1FuJeIwvwkPKr T/t40inJBrRGpK5MMm/lgM9pdop7O9E3PcKlNTv1qcnvRExntWtBLBuq+nKxFBox9qrA 8pBjlgsdPUfn8T17AbSPh4GF9WCdrs37EkvOF91hnYXgC888rwOuC7VaacqqAdPwfDdm 335Y6kiPabOpf4ywySvzsSIWJzukb8sIYA99/eK5/s8pW+Ylo7ALeQdaNh3vXY/QK96I M/3Q== 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=TvkjR5IPFH8TBqCVWQyHkMar3kf0aZ6W6YraC5H79/s=; b=dVcja+7kAysR61fYE2VB7n4DUz9YIO3xnI8tYIa5CYmEO0QGatBAfnKAAlESijEQfa m/2JfdDjrSGSHg+XNmaH1cicJ5MFjXyumV2EhQUePMoIMK8wS7Tc0GMKO3V2ZuiB6HJj 7E9jCrSUajlUOK7vkgYj++dK7VwXBF6LwHX5TJ/OFPWPWeEc5SQzS7ILnPShjogCRqsf LYnArSn5GhGP8GiksrSO3mat7+quYzUGlRkAh5OdxAD3y+a++KBrcE7M3sMYjdE2dC8o S3bEDn0ohw/AM98+F8Yr6BzrBc5eDBC8XSiGWAkiJjd5E7y6ciMn4pxfUrh2+QyWvE+a pBMw== X-Gm-Message-State: APjAAAXxEEMD4nvjWJIJtrtkLrHxhl9QB5Xcu8LqFvPU2j8lpJ4ZMd8r AzQ/giHpVNtzp6M+asxGYBidaZY4RfRC+mTvyZQ= X-Google-Smtp-Source: APXvYqySgHaMAk1gN9PEa6laf38zFKlKD6vrRwqjPLQWdM2bNSB7GMj1B8LQNx23kbxnB4LNRzUF2qJSSdjuXZUdvk0= X-Received: by 2002:ae9:c311:: with SMTP id n17mr44165914qkg.332.1556544715636; Mon, 29 Apr 2019 06:31:55 -0700 (PDT) MIME-Version: 1.0 References: <20190427162500.13554-1-ludo@gnu.org> <87tvei9s6m.fsf@gnu.org> In-Reply-To: From: zimoun Date: Mon, 29 Apr 2019 15:31:44 +0200 Message-ID: Subject: Re: [bug#35456] [PATCH 0/1] Add 'guix install', 'guix remove', and 'guix upgrade' To: Jonathan Brielmaier Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 35456 X-Mailman-Approved-At: Mon, 29 Apr 2019 11:05:39 -0400 Cc: =?UTF-8?Q?Ludovic_Court=C3=A8s?= , 35456@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: -1.0 (-) Dear, What about user-defined aliases ? Instead of scattered hard-coded aliases. Something using a .guixconfig file mimicking .gitconfig. The default command would be the one we already use. Predefined aliases such that `guix install` or `guix search` etc. should live in .guix-profile/etc/guixconfig. And maybe predefined apt flavor or yum flavour. I mean something like: ~/.guixconfig (alias 'ins (package --install)) (flavour 'apt) ~/.guix-profile/etc/guixalias-apt (alias 'install blabla 'search blabla 'show blabla) ~/.guix-profile/etc/guixalias-yum (alias 'install blabla 'search blabla 'info blabla) I do not know if it makes senses. All the best, simon From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 29 13:10:42 2019 Received: (at 35456) by debbugs.gnu.org; 29 Apr 2019 17:10:42 +0000 Received: from localhost ([127.0.0.1]:39616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL9ne-0002JE-KY for submit@debbugs.gnu.org; Mon, 29 Apr 2019 13:10:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL9nc-0002J1-LO for 35456@debbugs.gnu.org; Mon, 29 Apr 2019 13:10:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL9nX-00032W-92; Mon, 29 Apr 2019 13:10:35 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34674 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hL9nW-0006kl-2J; Mon, 29 Apr 2019 13:10:34 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: [bug#35456] [PATCH 0/1] Add 'guix install', 'guix remove', and 'guix upgrade' References: <20190427162500.13554-1-ludo@gnu.org> <87tvei9s6m.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 =?utf-8?Q?Flor=C3=A9al?= an 227 de la =?utf-8?Q?R?= =?utf-8?Q?=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: Mon, 29 Apr 2019 19:10:31 +0200 In-Reply-To: (zimoun's message of "Mon, 29 Apr 2019 15:31:44 +0200") Message-ID: <874l6gbuuw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (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: 35456 Cc: 35456@debbugs.gnu.org, Jonathan Brielmaier 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, zimoun skribis: > What about user-defined aliases ? I agree it=E2=80=99d be useful, it=E2=80=99s a perfectly valid wishlist ite= m IMO! I think that install/remove/upgrade/search need to be available by default though, as discussed earlier. Thanks for your feedback, Ludo=E2=80=99. From unknown Sat Jun 14 19:10:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 28 May 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator