From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wNB9I0yNRWJfwAAAgWs5BA (envelope-from ) for ; Thu, 31 Mar 2022 13:15:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sG4HIEyNRWJpKQAAauVa8A (envelope-from ) for ; Thu, 31 Mar 2022 13:15:24 +0200 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 2189B16808 for ; Thu, 31 Mar 2022 13:15:24 +0200 (CEST) Received: from localhost ([::1]:43782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZslv-0006vc-8h for larch@yhetil.org; Thu, 31 Mar 2022 07:15:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZshj-0001hR-PE for guix-patches@gnu.org; Thu, 31 Mar 2022 07:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZshj-0003Uu-FU for guix-patches@gnu.org; Thu, 31 Mar 2022 07:11:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZshj-0002Dt-9h for guix-patches@gnu.org; Thu, 31 Mar 2022 07:11:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54393] [PATCH v2 0/3] Add '--export-manifest' to 'guix shell' Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 31 Mar 2022 11:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54393 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54393@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 54393-submit@debbugs.gnu.org id=B54393.16487250518447 (code B ref 54393); Thu, 31 Mar 2022 11:11:03 +0000 Received: (at 54393) by debbugs.gnu.org; 31 Mar 2022 11:10:51 +0000 Received: from localhost ([127.0.0.1]:38026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZshW-0002C1-P7 for submit@debbugs.gnu.org; Thu, 31 Mar 2022 07:10:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZshL-0002A1-I7 for 54393@debbugs.gnu.org; Thu, 31 Mar 2022 07:10:40 -0400 Received: from [2001:470:142:3::e] (port=54766 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZshG-0003LB-Cr; Thu, 31 Mar 2022 07:10:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=myYwJo5ugJDuCoRtCWXqHaVD4jt4FxC5Bm7I7AZSJAI=; b=HF2KmgHqvxraZmpcw6Rz 8EbG+26USvTLd5V+uMzlu9jXeog2/+lQwcsjW5K2PJYj0tPoikVqFx/07qe98Li4+kpEXlyzQdmVd 2iihGO5nScU4v+Ld+81jh3pyne8Ks7ndlkOPZ5ZZ70yri+8YOB7KXXLw0FWQJH3m22+xoBckHT2oG sgYR/fLL1IyStyyG9O4Xk/xoUiALhe2vN6Qi7Kpc8hRclQwjy2Iitz9HIKrt0pOxMUiLS6zpSFzFk 0vZwqzPkWlXi2mn1RVvFBtzomCUmaJGXCHvSReXkT6Tn03eq+x42HUFbl3W96YU3jT4DMoDcrJ8GD 0HwBUuDq1E7omA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:51264 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZshF-000370-V1; Thu, 31 Mar 2022 07:10:34 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 31 Mar 2022 13:10:27 +0200 Message-Id: <20220331111027.31890-1-ludo@gnu.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <87r173huph.fsf@gnu.org> References: <87r173huph.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648725324; 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=myYwJo5ugJDuCoRtCWXqHaVD4jt4FxC5Bm7I7AZSJAI=; b=SJwEItzp7KnyrAAgZ9XhYsjOraY6XjsbCvCayZvOOMGks4THkhOdK2hAHNIACkUAm///lT DygvtfClhbf1klFAbq/Vz6k8XnU6OkhBtxPTYwwM8xlNltbaUBLT6pYMNpQVeD+7k11pNp bxYxiuOxZBm+m8nn+FLY++/KjErN5RvtqYRXaPoBF2EIM5EL7Qd8qUT5e2SwES9ST5noqt 1iFlnHEXYwDv3YM+WNuPqz0eFzuLXvPdtTd2kp1/nwhUsBVIZGlBBcYgd1KU10FjQ63kKR eZg8lWMat3ZyjJr+GKRin078dbhk3zCniM11PCuyg2Mj9gia+EmGNK53omlKPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648725324; a=rsa-sha256; cv=none; b=rtU/nGSKEM8A4ig69yxq5PAm+086vEy7F+gIJCKtUaIIFh/kjKoH2E+xYWW6kcLCSKE55I EvNoDCXClbbiZn5OqlB1IwSu3CMTtFmszrbnmE+evkjc6YklvIrqk3PRk3m4hQ5Zxd+GGj jL4I/dowQx5tsheiS+NMbV0loj/W+g9aPl9cYig7yeECwcl2JxLE9YcXY1Pn1hwZUA/518 8VHWGSNjT3DQHPiiDOp6I3TNOAz/rpZw2iRTBMIblESk8YwrUK7EAJ7vyCSrcA8IDa4dm3 4+57AmBOgQkZOA9dYBMH96y4F6Gu22Hd7QHQtBjBzVs6nxmqIVEvQsxJzvrO+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=HF2KmgHq; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=HF2KmgHq; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2189B16808 X-Spam-Score: -3.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: cB+UxP7JymzY Hello! Here’s a v2 of the patch: instead of introducing a new command, this version adds an ‘--export-manifest’ option to ‘guix shell’, as suggested by zimoun and others. The behavior is the same as that of the previously-proposed ‘guix manifest’ command. Thoughts? Ludo’. Ludovic Courtès (3): packages: Add 'package-unique-version-prefix'. environment: Export 'load-manifest'. shell: Add '--export-manifest'. Makefile.am | 1 + doc/guix.texi | 57 +++++++++++++++ gnu/packages.scm | 21 ++++++ guix/scripts/environment.scm | 9 ++- guix/scripts/package.scm | 20 +---- guix/scripts/shell.scm | 109 +++++++++++++++++++++++++++- tests/guix-shell-export-manifest.sh | 84 +++++++++++++++++++++ tests/packages.scm | 13 ++++ 8 files changed, 291 insertions(+), 23 deletions(-) create mode 100644 tests/guix-shell-export-manifest.sh base-commit: 53b04339fe521f486d3017930a419d5ca8a6cffd -- 2.34.0