From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: Odd behavior with --dry-run and --upgrade Date: Sat, 23 Jul 2016 14:23:24 -0400 Message-ID: <20160723182324.GA5826@jasmine> References: <87y44sqtiw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bR1aL-0005Xg-IZ for guix-devel@gnu.org; Sat, 23 Jul 2016 14:23:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bR1aF-0006o2-KG for guix-devel@gnu.org; Sat, 23 Jul 2016 14:23:36 -0400 Content-Disposition: inline In-Reply-To: <87y44sqtiw.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: Roel Janssen Cc: guix-devel On Sat, Jul 23, 2016 at 05:11:03PM +0200, Roel Janssen wrote: > 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'. Right, it has to build the ungrafted things in order to do a dry-run of the grafts. > Do you think the behavior of --dry-run should be changed to not graft > things by default? And if so, do you have a pointer where I could find > the problematic code? I couldn't find anything particularly odd because > the code involved has a `dry-run?' condition pretty much everywhere it > matters. I think we should be able to do --dry-runs of grafting. But I was also confused by the effect of the grafts at first. I'll wait for the opinions of more experienced developers :)