From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVxPz-0006Od-VU for guix-patches@gnu.org; Mon, 01 Jan 2018 05:34:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVxPw-0004VI-P3 for guix-patches@gnu.org; Mon, 01 Jan 2018 05:34:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:50577) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eVxPw-0004V8-Lo for guix-patches@gnu.org; Mon, 01 Jan 2018 05:34:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eVxPu-0000uA-DF for guix-patches@gnu.org; Mon, 01 Jan 2018 05:34:04 -0500 Subject: [bug#29925] [PATCH 3/5] guix package: Disable profile hooks on dry runs. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVxPi-0006LG-HF for guix-patches@gnu.org; Mon, 01 Jan 2018 05:33:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVxPg-0004Na-9P for guix-patches@gnu.org; Mon, 01 Jan 2018 05:33:50 -0500 Received: from rezeros.cc ([45.76.207.221]:56206) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eVxPf-0004LU-RL for guix-patches@gnu.org; Mon, 01 Jan 2018 05:33:48 -0500 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Mon, 1 Jan 2018 18:33:34 +0800 Message-Id: <20180101103336.8613-4-iyzsong@member.fsf.org> In-Reply-To: <20180101103336.8613-1-iyzsong@member.fsf.org> References: <20180101103336.8613-1-iyzsong@member.fsf.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29925@debbugs.gnu.org Profile hooks will access the content of manifest inputs before return the profile derivation, disable them so we don't get inputs bulit on dry runs. * guix/scripts/package.scm (build-and-use-profile): Disable profile hooks when a dry-run parameter is given. --- guix/scripts/package.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index 617e102d9..ce0031551 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -203,7 +203,7 @@ specified in MANIFEST, a manifest object." (let* ((prof-drv (run-with-store store (profile-derivation manifest - #:hooks (if bootstrap? + #:hooks (if (or bootstrap? dry-run?) '() %default-profile-hooks) #:locales? (not bootstrap?)))) -- 2.13.3