From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cFVeO711bGCtNAEAgWs5BA (envelope-from ) for ; Tue, 06 Apr 2021 16:52:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WBpONb11bGAUYwAAbx9fmQ (envelope-from ) for ; Tue, 06 Apr 2021 14:52:45 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 613BA20347 for ; Tue, 6 Apr 2021 16:52:45 +0200 (CEST) Received: from localhost ([::1]:46964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTn4O-0002DR-EW for larch@yhetil.org; Tue, 06 Apr 2021 10:52:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTn3j-0001dK-QE for bug-guix@gnu.org; Tue, 06 Apr 2021 10:52:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTn3j-0008LM-3U for bug-guix@gnu.org; Tue, 06 Apr 2021 10:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTn3j-0001ZR-2K for bug-guix@gnu.org; Tue, 06 Apr 2021 10:52:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47618: "guix upgrade" and "guix package -u ." inconsistency Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Apr 2021 14:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47618 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 47618@debbugs.gnu.org X-Debbugs-Original-To: "bug-guix@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.16177207226026 (code B ref -1); Tue, 06 Apr 2021 14:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Apr 2021 14:52:02 +0000 Received: from localhost ([127.0.0.1]:41421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTn3c-0001Yt-Vs for submit@debbugs.gnu.org; Tue, 06 Apr 2021 10:52:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:56572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTjkq-0008Gc-HR for submit@debbugs.gnu.org; Tue, 06 Apr 2021 07:20:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTjkq-0005Hw-BZ for bug-guix@gnu.org; Tue, 06 Apr 2021 07:20:20 -0400 Received: from mout-p-201.mailbox.org ([2001:67c:2050::465:201]:63682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lTjki-0000Sl-Ks for bug-guix@gnu.org; Tue, 06 Apr 2021 07:20:20 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4FF4nK38tPzQjm2 for ; Tue, 6 Apr 2021 13:20:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:mime-version:subject:subject :message-id:from:from:date:date:received; s=mail20150812; t= 1617708001; bh=RH0WoCgzkdKvF0sc+4uBMQzSQ7PswAA2dzAAES8G2/k=; b=w fSbE8lgrTVzpV6B8NzK5MiF9G82DVamwHMhD856IAND+ffBUI1eVxow8nALQzIjy DpwobWx0mbeJhgOnkJW1v9KSaTreGgC4GSYH8dCc2BzNIaGQRqCGsJNFzeB2iqr5 sERUcru2C254kQaSF9ime8p5yIHLc/Uq30nn8O+BexVSUrhosS4aFS4zNuuc6/JH tIOqX8ebmHuTFZThVkML7ejYqaK7YwOcAirg3w8Q19QlUcpBdoaTTGgXLpOy+1vr 8D2ukQuNjofthxx7o4/7EoALJv50XpdBpK8Hq99YjQhh/JNwFVn8SagA+YwVsIE5 JmJScJTxFn4cl89sz7oCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1617708003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ZG+vlP7aonTroWZ/lW22M6UWG4ZqflXeT1EMUxmSdLY=; b=X3+R495AhVbL6Du7diLzZ++xuHjQvlVoNRACW8pLv8EH3kdb0DGrlwaiOurTw1pNpg9UoR 72wfPmtoJfKonbA4by9UJrp4rweBA17K0dF8TyrGqojbLnUrjJ5xFsdmWnnYAYy5dlejNQ 3lZoyNhatTxN5zj+RlA+mt6nK4G3Hxgdb0VVIg4pU9ROAN/g5Fah6/nvtUa+7dUiBU1Mjj 66HymMMeCs17ny9zp/clq8+jb3qY2Kv8/ujTHEcN0ZJLnoQEZenjedKehyAeDmKWM6T6Df ATaS+4LBZ6MOot2VSCfWf7iRZvKSlmVI0OHLY4BWt8LKx3V4YZwPd1f/5CVQZw== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id khzABxpZ6kB4 for ; Tue, 6 Apr 2021 13:20:01 +0200 (CEST) Date: Tue, 6 Apr 2021 13:20:01 +0200 (CEST) Message-ID: <704666652.34576.1617708001601@office.mailbox.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_34575_1228745950.1617708001597" X-Priority: 3 Importance: Normal X-MBO-SPAM-Probability: X-Rspamd-Score: -4.31 / 15.00 / 15.00 X-Rspamd-Queue-Id: 6F9C41800 X-Rspamd-UID: d7a740 Received-SPF: pass client-ip=2001:67c:2050::465:201; envelope-from=btild@mailbox.org; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 06 Apr 2021 10:51:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Brendan Tildesley From: Brendan Tildesley via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617720765; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=ZG+vlP7aonTroWZ/lW22M6UWG4ZqflXeT1EMUxmSdLY=; b=HANks8JAZZ5zx+Bnd/rV4PpzPr0fn0MadStNAfYgcTl89eWTQsCBPC3KRMRwqHTEwXKxqB C6gqD3UUREj4g8fP8n5xGD/sISudD1TeuY9WVk8rdd/ugZwoTpKuxrrf7uSw7CyZOcg9M6 wfITonsV4ck5yxP6Uzdo86rcIOwgdmHU5OAlf90PkIcMXxVt/3HmFU+SWSRSSogmfz29Za QcnRx+t5TbcMEBzHIJbFN2+e5ooRagSa5KLkGVAANgDqdOd9JV611Jg+z/fHtmN1/J6k+q /Mb9HZIXOUopBCj30/XYMwGowrKUPGZlC72H5ZZqoaHBGxBzqd/jddiazpa5sQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617720765; a=rsa-sha256; cv=none; b=oYSEcL49OqcVdtbKqGYMfudANqqgzHSWRHfkxIcEgO0z966LlPhrvauBbhBQImCi5dhN0X zkOIWsuuSGMnD5jiQaURjyhZXAoD6bZrSeMrkI00TGFGQ0XtUb8gEJEQK4iaQczK0vQpIc w0uaVO06JklaO5oDyHkjp/HyQ5LkJ6LC4PsH/DlyPUbwtEm6bibiUYp0YZjhFqG85vw5WL bLmpVmrXUsVDp61AqayfBm7Oww6CO89zeOWG2KH37mThFbFzqRSRiyA0rj69vOFT4yoMyD oCBIIuF9/vPUZuc+Hg86QubiKNSfUQkAcOY57pj3O4OnZlBJN5VYgnwGbUUA4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b="w fSbE8l"; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=X3+R495A; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b="w fSbE8l"; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=X3+R495A; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 613BA20347 X-Spam-Score: -1.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: QMa9cxkLB9t0 ------=_Part_34575_1228745950.1617708001597 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Below, --do-not-upgrade appears to be behaving like "--only-upgrade". I rea= lised this comes about because I didn't use '=3D'. guix upgrade takes all other arguments to be upgrade regex's, but it still seems. _wrong_. Some long arguments in guix require and =3D sign after them, and the cli help indicat= es as much, but --do-not-upgrade seems to break that pattern and takes all argume= nts after it to be regexes's to match and not upgrade. flags that have this behaviour of acting on all arguments after them should indicate clearly the= y do that. and indicated if the '=3D' is optional using some intuitive notation. The line: --do-not-upgrade[=3DREGEXP] do not upgrade any packages matching REGEXP suggest it must take either no argument or only '=3Dsomething'. guix upgrade --help says that it is an alias for 'guix package -u .'. My understanding is that the meaning of alias is something that can be substit= uted and it will behave the same, like Bash aliases. We should change 'guix upgrade''s behaviour to be like 'guix package -u', taking all arguments aft= er --do-not-upgrade as regex's to not upgrade. b@jiu ~/code/guix [env]$ guix upgrade --do-not-upgrade '^[a-n]' The following packages will be upgraded: audacity (dependencies or package changed) cool-retro-term (dependencies or package changed) deluge (dependencies or package changed) diffoscope 170 =E2=86=92 171 emacs (dependencies or package changed) eog (dependencies or package changed) evince (dependencies or package changed) ffmpeg (dependencies or package changed) git 2.31.0 =E2=86=92 2.31.1 git:send-email 2.31.0 =E2=86=92 2.31.1 gnome-font-viewer (dependencies or package changed) gnome-tweaks (dependencies or package changed) godot (dependencies or package changed) ibus (dependencies or package changed) ibus-anthy (dependencies or package changed) icecat (dependencies or package changed) keepassxc (dependencies or package changed) lm-sensors (dependencies or package changed) lollypop (dependencies or package changed) mpv (dependencies or package changed) mumble (dependencies or package changed) 62.6 MB will be downloaded ^C b@jiu ~/code/guix [env]$ guix package -u . --do-not-upgrade '^[a-n]' The following packages will be upgraded: obs (dependencies or package changed) piper (dependencies or package changed) playonlinux (dependencies or package changed) rhythmbox (dependencies or package changed) stellarium (dependencies or package changed) syncthing-gtk (dependencies or package changed) tinc (dependencies or package changed) transmission:gui (dependencies or package changed) ungoogled-chromium (dependencies or package changed) vlc (dependencies or package changed) youtube-dl (dependencies or package changed) zrythm (dependencies or package changed) The following derivation will be built: /gnu/store/6ldzv7ilcsg4ah8vyig9vyh9y79yz6m1-tinc-1.1pre17.drv ------=_Part_34575_1228745950.1617708001597 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =20 =20
Below, --do-not-upgrade appears to be behaving like "--only-upgrade". I = realised=20
this comes about because I didn't use '=3D'. guix upgrade takes all = other=20
arguments to be upgrade regex's, but it still seems. _wrong_.  = Some long=20
arguments in guix require and =3D sign after them, and the cli help = indicates as=20
much, but --do-not-upgrade seems to break that pattern and takes all= arguments=20
after it to be regexes's to match and not upgrade.  flags that = have this=20
behaviour of acting on all arguments after them should indicate clea= rly they do=20
that. and indicated if the '=3D' is optional using some intuitive no= tation.=20
The line:=20

   --do-not-upgrade[=3DREGEXP] do not upgrade any packages= matching REGEXP=20

suggest it must take either no argument or only '=3Dsomething'.=20

guix upgrade --help says that it is an alias for 'guix package -u .'= . My=20
understanding is that the meaning of alias is something that can be = substituted=20
and it will behave the same, like Bash aliases.  We should chan= ge 'guix=20
upgrade''s behaviour to be like 'guix package -u', taking all argume= nts after=20
--do-not-upgrade as regex's to not upgrade.=20


b@jiu ~/code/guix [env]$ guix upgrade --do-not-upgrade '^[a-n]'=20
The following packages will be upgraded:=20
   audacity        = ;  (dependencies or package changed)=20
   cool-retro-term   (dependencies or package ch= anged)=20
   deluge        &= nbsp;   (dependencies or package changed)=20
   diffoscope        17= 0 =E2=86=92 171=20
   emacs        &n= bsp;    (dependencies or package changed)=20
   eog        &nbs= p;      (dependencies or package changed)=20
   evince        &= nbsp;   (dependencies or package changed)=20
   ffmpeg        &= nbsp;   (dependencies or package changed)=20
   git        &nbs= p;      2.31.0 =E2=86=92 2.31.1=20
   git:send-email    2.31.0 =E2=86=92 2.31.= 1=20
   gnome-font-viewer (dependencies or package changed)=20
   gnome-tweaks      (dependencie= s or package changed)=20
   godot        &n= bsp;    (dependencies or package changed)=20
   ibus        &nb= sp;     (dependencies or package changed)=20
   ibus-anthy        (d= ependencies or package changed)=20
   icecat        &= nbsp;   (dependencies or package changed)=20
   keepassxc       &nbs= p; (dependencies or package changed)=20
   lm-sensors        (d= ependencies or package changed)=20
   lollypop        = ;  (dependencies or package changed)=20
   mpv        &nbs= p;      (dependencies or package changed)=20
   mumble        &= nbsp;   (dependencies or package changed)=20

62.6 MB will be downloaded=20
^C=20
b@jiu ~/code/guix [env]$ guix package -u . --do-not-upgrade '^[a-n]'= =20
The following packages will be upgraded:=20
   obs        &nbs= p;       (dependencies or package changed)=20
   piper        &n= bsp;     (dependencies or package changed)=20
   playonlinux        (= dependencies or package changed)=20
   rhythmbox       &nbs= p;  (dependencies or package changed)=20
   stellarium       &nb= sp; (dependencies or package changed)=20
   syncthing-gtk      (dependenci= es or package changed)=20
   tinc        &nb= sp;      (dependencies or package changed)=20
   transmission:gui   (dependencies or package c= hanged)=20
   ungoogled-chromium (dependencies or package changed)=20
   vlc        &nbs= p;       (dependencies or package changed)=20
   youtube-dl       &nb= sp; (dependencies or package changed)=20
   zrythm        &= nbsp;    (dependencies or package changed)=20

The following derivation will be built:=20
   /gnu/store/6ldzv7ilcsg4ah8vyig9vyh9y79yz6m1-tinc-1.1pre= 17.drv=20

------=_Part_34575_1228745950.1617708001597--