From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UHiADIb2QmF4DAEAgWs5BA (envelope-from ) for ; Thu, 16 Sep 2021 09:47:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2MYmCIb2QmGSeAAAB5/wlQ (envelope-from ) for ; Thu, 16 Sep 2021 07:47:18 +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 8721C12A4D for ; Thu, 16 Sep 2021 09:47:17 +0200 (CEST) Received: from localhost ([::1]:45764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQm72-0004OB-PI for larch@yhetil.org; Thu, 16 Sep 2021 03:47:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQm5t-0003Ml-PB for bug-guix@gnu.org; Thu, 16 Sep 2021 03:46:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42159) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQm5q-0006xa-0j for bug-guix@gnu.org; Thu, 16 Sep 2021 03:46:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQm5p-0000zZ-Sr for bug-guix@gnu.org; Thu, 16 Sep 2021 03:46:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#28743: guix package dry-run upgrade incorrect behaviour with verbosity Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 16 Sep 2021 07:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28743 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Oleg Pykhalov Received: via spool by 28743-submit@debbugs.gnu.org id=B28743.16317783523748 (code B ref 28743); Thu, 16 Sep 2021 07:46:01 +0000 Received: (at 28743) by debbugs.gnu.org; 16 Sep 2021 07:45:52 +0000 Received: from localhost ([127.0.0.1]:53694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQm5f-0000yN-Pp for submit@debbugs.gnu.org; Thu, 16 Sep 2021 03:45:52 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:40473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQm5a-0000xp-Db for 28743@debbugs.gnu.org; Thu, 16 Sep 2021 03:45:50 -0400 Received: by mail-wr1-f53.google.com with SMTP id q26so7900120wrc.7 for <28743@debbugs.gnu.org>; Thu, 16 Sep 2021 00:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=pHJBgdlkJDE7Li+uGUH93H+MItZVu7BltjTXMOIsLAQ=; b=FGVZfhYPn5VrAo0we6GHjrfSXmlfIVPbYPaCSrcGhT0kBFjLVSdxVVj0syRch07hgF bZTl9Ru7IlpLK/GdbHOsULooWich6ZkEIOY8JWi5bFRP4GJyf/3q2lFG6Qpcm59RU2WP NGmVDS0br77OoVmXg3eKgqaUQw7nw81QDFM8avPMTFeAt540C4t1BSTX2baHlailcYnD iKBFsNUb+BNfOCdU0xR4OHJfhEcetfoYKDj3fHV9dpcdjtn9hixUrluZCZrJ7x7w1hUG Ksrk8cRTZWfBHOoEv9o1LQtb8WWTQqjGONzMOBzy8wXQqUr6OaQqg/ni4Ijz1HksQWwF teAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=pHJBgdlkJDE7Li+uGUH93H+MItZVu7BltjTXMOIsLAQ=; b=kMZZYTFgVJ9rYmrjApLYIbR6FxYcVgRnT/p5ppY55J6lXmE4WzSQJg0wB8wyrrP65J DTClTIC5Vg7S4XLY+wxZEZq4eYkaqahzLluWRzi0QGPGwr3GKN0YafIbNF/GnMhgJCUn ZMw/aooJ8b0vf59Xr2rF85DZFe8NPR3IUcJConzNYHoAqr9So9gknJwxr6BgWgi010lT e+GbnwMohyde90tAiwDGrPdbg22YTV1Kripq8roRQ+GYqY2AUoVEKC87XCe7FGagjOt5 uwJ70bEUZ68yrjnUgyrhcq69G39l9d/5d4GcoF563DMnUuIu0LZNBMGQ3SlagEsUnuRo LxTA== X-Gm-Message-State: AOAM533PiHfKeGdY3m+Tn5c44/hIAMR4a0yd7WRpViBfXw37iU9tW18R Nvz5v5Ee4s8xHKGNCwIDKnE= X-Google-Smtp-Source: ABdhPJxyQ0Ss1ZtR4cqEYbCeHVGkMci4iR93dbi1jZNWwx8cDvvFKNyZ3KuZ+bw+4zNwaBQ4Ktfw3A== X-Received: by 2002:adf:d214:: with SMTP id j20mr4427357wrh.119.1631778340462; Thu, 16 Sep 2021 00:45:40 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id d129sm7321526wmd.23.2021.09.16.00.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 00:45:40 -0700 (PDT) From: zimoun References: <87o9pqz457.fsf@gmail.com> <87tvzhcpi3.fsf@gmail.com> <87wp4c7eo5.fsf@gmail.com> <87k20catud.fsf@gnu.org> <874lrf52k5.fsf@gmail.com> <87efqj9v0b.fsf@gnu.org> <87d162tpy9.fsf@gmail.com> <87d1617ndp.fsf@gnu.org> <87lgkojkrl.fsf@gmail.com> <87h8vbkj91.fsf@gnu.org> <87fuav1k78.fsf@gmail.com> <87tvzbj8o9.fsf@gnu.org> <87376u5dal.fsf_-_@gmail.com> Date: Thu, 16 Sep 2021 09:18:20 +0200 In-Reply-To: <87376u5dal.fsf_-_@gmail.com> (Oleg Pykhalov's message of "Sun, 08 Oct 2017 10:06:26 +0300") Message-ID: <86a6kdrnsz.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Cc: Alex Kost , 28743@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631778437; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pHJBgdlkJDE7Li+uGUH93H+MItZVu7BltjTXMOIsLAQ=; b=Xr5IvzC7h2gVBP3pndfK557VaMC/ARTCsDmNZkuBYupqOjIS0Z84XaN+Pz16+T1XWEnhrd EVNkMwH5VTOeovzObl86HGNmouuHD2zsYZMqkrGonCFKXK1pjSa52UmJpsNhtdKGtvRRLa gZpbWN3A6L7MAntkZU/oE6gpsbNhB0jFR8zF0THzktYdeBVA8esUdKSir3Yv2HchUBoqNY gskBC3yApjJHiv+qfDStGCDJBnhJNRzCoa2wn3/wQ83s8jNjQY/FmsbfrDdmDiVjJLwFG3 qJNztHuXb5MK97grVwBQw+sXL0FmsmqexFAHEtJQBY7y4w7gSnddmQPEaxn9hQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631778437; a=rsa-sha256; cv=none; b=cTqjRaFA29/WOF0aL2rvPvh1FJU830BCosyQQlMTax61P/Iv3SbzwFLp8OEhyioX2SbwG/ wF8rkIpgMJ4Gu0evY9kElLZCllyG9yv+49HaL4KwfBaZ8EEhhyIliJXQNgNjjgC02gBdKr P/QAqYlVPOYvEAoi2IgDUXcDU3g0zb5iXZvMDvSt5Yx0ZOcLjyLXG6eVJwwP+8hntmKBdN zmWVDMfkmU3XIAcB16Q7DFZsHCQqhFBH8484PCmUeaubw34UXabGTCr+3lY4wz9SRp2PFB gP7MT+EKZS1yhvmKDDfGnqwDbfzagZ00XOXzvZwXGeghPEAkmLpJmHcPwsk4LQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FGVZfhYP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FGVZfhYP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 8721C12A4D X-Spam-Score: -1.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: xnzMuhzaaeYj Hi, This old bug [1] is about dry-run. IIUC, it is not now fixed as shown below. However, there is another annoying thing about the option =E2=80=99--verbosity=E2=80=99. 1: On Sun, 08 Oct 2017 at 10:06, Oleg Pykhalov wrote: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Previous discussion thread and attached debugging files: > https://lists.gnu.org/archive/html/help-guix/2017-10/msg00000.html > > > After patching no new generation created. But dry-run still shows > available upgrades and that will be build some derivations. > >> I=E2=80=99ve pushed the above patch as eca16a3d1d9e6b2c064e0105c1015258b= f2755f2. >> Now we need to fix the UI side of things. Let create a profile with a package without the grafts, then check the update with dry-run, make the upgrade, check the dry-run upgrade again. All seem fine, right? --8<---------------cut here---------------start------------->8--- $ guix package -i r-shiny -p /tmp/foo --no-grafts 2>/dev/null $ guix package -p /tmp/foo --upgrade --dry-run The following package would be upgraded: r-shiny (dependencies or package changed) The following derivation would be built: /gnu/store/bqsnn9k5jw3gklbzkzhknqpfikvl3bdy-profile.drv $ guix package -p /tmp/foo --list-generations Generation 1 Sep 16 2021 09:04:48 (current) r-shiny 1.6.0 out /gnu/store/gq31n44a6b815xlrh0zph6vwc7wqqw8c-r-shiny-1.6= .0 $ guix package -p /tmp/foo --upgrade --dry-run The following package would be upgraded: r-shiny (dependencies or package changed) The following derivation would be built: /gnu/store/bqsnn9k5jw3gklbzkzhknqpfikvl3bdy-profile.drv $ guix package -p /tmp/foo --upgrade The following package will be upgraded: r-shiny (dependencies or package changed) The following derivation will be built: /gnu/store/bqsnn9k5jw3gklbzkzhknqpfikvl3bdy-profile.drv building CA certificate bundle... listing Emacs sub-directories... building fonts directory... building directory of Info manuals... building database for manual pages... building profile with 1 package... $ guix package -p /tmp/foo --list-generations Generation 1 Sep 16 2021 09:04:48 r-shiny 1.6.0 out /gnu/store/gq31n44a6b815xlrh0zph6vwc7wqqw8c-r-shiny-1.6= .0 Generation 2 Sep 16 2021 09:06:05 (current) $ guix package -p /tmp/foo --upgrade --dry-run guix package: warning: nothing to do --8<---------------cut here---------------end--------------->8--- However, let do the same thing with the option =E2=80=99--verbosity=3D2=E2= =80=99 (equal deprecated =E2=80=99--verbose=E2=80=99). --8<---------------cut here---------------start------------->8--- $ rm -fr /tmp/foo* $ guix package -i r-shiny -p /tmp/foo --no-grafts 2>/dev/null $ guix package -p /tmp/foo --upgrade --dry-run --verbosity=3D2 The following package would be upgraded: r-shiny (dependencies or package changed) $ guix package -p /tmp/foo --list-generations Generation 1 Sep 16 2021 09:04:48 r-shiny 1.6.0 out /gnu/store/gq31n44a6b815xlrh0zph6vwc7wqqw8c-r-shiny-1.6= .0 Generation 2 Sep 16 2021 09:06:05 (current) $ guix package -p /tmp/foo --upgrade --verbosity=3D2 guix package: warning: nothing to do --8<---------------cut here---------------end--------------->8--- Et voil=C3=A0! Still a bug. Same with any other =E2=80=99verbosity=E2=80= =99 value. All the best, simon