From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: Re: Odd behavior with --dry-run and --upgrade Date: Tue, 26 Jul 2016 00:14:47 +0200 Message-ID: <8760rtbc14.fsf@gnu.org> References: <87y44sqtiw.fsf@gnu.org> <87h9bfcteu.fsf@gmail.com> <87y44q8yta.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRo8s-0002gt-9g for guix-devel@gnu.org; Mon, 25 Jul 2016 18:14:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRo8q-0003WR-9k for guix-devel@gnu.org; Mon, 25 Jul 2016 18:14:29 -0400 In-reply-to: <87y44q8yta.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel , Alex Kost Ludovic Courtès writes: > Hi! > > Alex Kost skribis: > >> Roel Janssen (2016-07-23 18:11 +0300) wrote: >> >>> Dear Guix, >>> >>> For some time now, running `guix package --dry-run --upgrade' results in >>> build actions involving grafting. For a dry-run, I find that really >>> odd. I believe the correct behavior should be what can be achieved >>> with: `guix package --dry-run --no-grafts --upgrade'. >> >> I'm totally agree with this; nowadays I always use --dry-run with >> --no-grafts option. > > Same here… > >> As a user I expect that --dry-run means no building at all. >> >> BTW it's not just about ‘guix package --dry-run --upgrade’, it relates >> to all commands, for example ‘guix build --dry-run foo’, etc. >> >> OTOH, if a future ‘--dry-run’ would mean what ‘--dry-run --no-grafts’ >> means now, than how to achieve what ‘--dry-run’ means now? Or rather: >> does anyone use just --dry-run (without --no-grafts)? Is it really >> useful? > > In theory it could be useful for ‘guix build’, since it’s a “low level” > tool and people using it may want to be able to distinguish between > grafted and non-grafted results. > > But honestly, I think changing ‘--dry-run’ to do ‘--dry-run --no-grafts’ > would be fine, and probably better than the current situation. Could you provide some insight in where I should be looking to att the check to 'graft?'? Kind regards, Roel Janssen