From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CKPnNeBIzl+nTAAA0tVLHw (envelope-from ) for ; Mon, 07 Dec 2020 15:23:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +O/CMeBIzl+rIgAA1q6Kng (envelope-from ) for ; Mon, 07 Dec 2020 15:23:12 +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 583B794043A for ; Mon, 7 Dec 2020 15:23:12 +0000 (UTC) Received: from localhost ([::1]:33576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmIM2-0005KT-VQ for larch@yhetil.org; Mon, 07 Dec 2020 10:23:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmIKq-0004dQ-Lt for guix-devel@gnu.org; Mon, 07 Dec 2020 10:21:56 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:50292) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmIKo-0002uz-Ur for guix-devel@gnu.org; Mon, 07 Dec 2020 10:21:56 -0500 Received: by mail-wm1-x333.google.com with SMTP id c198so11824517wmd.0 for ; Mon, 07 Dec 2020 07:21:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=Prc/PSHx1gYCpyQWkBbxg8pQHTygMdTf/XN3ANgBTmI=; b=ppcVHTbHPaIFAfyuGp4RwP386KI1a1LLw9BysknfvvwsJIzSdp3xmZa8H3mrpkFqlq YRzdpOP2A1Zlpw0ye0U4nVMQin9g2vXsKRXq7+AjY/K9AghAVoKOOIaQ1j85Yn1+vBLM VMy10bdufKv00nrZZ4KJMa00Zx1fK1y4Zn5go48CgRa2U8iMKHH/IkBFcPdvMwYoqPRB cfR1ZN87eKW8DPlXKWJCMDgjDYSqCW8hW4lurhPpTErbU6B7CndXuY2eqifcoki10OVn Io4mMVJGjHPhXACxY9W/sk62e8SEbPITTeibdyDyGMltE7I7wKgcKfWleuc/mV+VDxdr eocA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Prc/PSHx1gYCpyQWkBbxg8pQHTygMdTf/XN3ANgBTmI=; b=oC9eEuXIu2uz7Y28qSElM1ws1HImIPPrgfzIu8pBqIClvWkK5zNyrYZgqDCod3tcSO Swr6al/UH/B9Quzcz2C2KeK38jNF7X7oAOSQhteT7vH+kgJrab73NWbxhFhdgTdEBv/N 60/+QHGBZ0WDYJz//ELRLBOW6KDzNTiSu4EWTzprxLbQQO1CUQugvYdl+dVVjP4PYglT TSz5+R4RGKNBopzTtQDk9pNnf9Y76Ll+0Ea0PEynBmXQ6XEfLqYxTP3We+LwQfL5tQDu ogOJuKb8Q3oFzvLaYgx4YvlJ897XCaExmYBzn10H+nHafw8BfAs7CAbZrvbUmRUTMmT8 dtdQ== X-Gm-Message-State: AOAM532mu1M25CHNwSL85C6lCcVZUKeznCcvRnN10ZvxM30a4x4HlbG0 nvjXWAr//AtqJpDMljInTQxpBbyY9eA= X-Google-Smtp-Source: ABdhPJzOKmhMCEKwWeXxi+/RAIQP/MK9NHSGBsB7v0aFMeRLuGISobdIrdO1ZsonMR0q6gmYWaEtjQ== X-Received: by 2002:a1c:e907:: with SMTP id q7mr18957520wmc.161.1607354512927; Mon, 07 Dec 2020 07:21:52 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id t188sm14726582wmf.9.2020.12.07.07.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 07:21:52 -0800 (PST) From: zimoun To: Ricardo Wurmus , guix-devel@gnu.org Subject: Re: guix pack file enumerator? In-Reply-To: <875z5f6z1a.fsf@elephly.net> References: <875z5f6z1a.fsf@elephly.net> Date: Mon, 07 Dec 2020 16:14:32 +0100 Message-ID: <867dpt7inb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ppcVHTbH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 583B794043A X-Spam-Score: -2.00 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: 5pZaPtGVb77O Hi Ricardo, On Sun, 06 Dec 2020 at 10:53, Ricardo Wurmus wrote: > What do you think about adding an output format that is no format at all > but a file enumeration printed to stdout? That way I could use =E2=80=9C= guix > pack=E2=80=9D to produce a list of files to transfer and use that to tran= sfer > only the unchanged files. Alternatively, perhaps we could have a > =E2=80=9Cdirectory=E2=80=9D format that merely copies (or links) the file= s to a new > directory root. Well, I am not sure if it fits your use case but I am still annoyed to find the =E2=80=9Cprofile/manifest=E2=80=9C path when I use: guix pack -f docker --save-provenance -m manifest.scm then extracts this =E2=80=9Cprofile/manifest=E2=80=9D needs: --8<---------------cut here---------------start------------->8--- docker export -o foo.tar tar -xf foo.tar $(tar -tf foo.tar | grep =E2=80=99profile/manifest=E2=80= =99) --8<---------------cut here---------------end--------------->8--- in order to rebuild an approximation of =E2=80=99manifest.scm+channels.scm= =E2=80=99 if it has been lost, for example to be able to re-run at anytime: --8<---------------cut here---------------start------------->8--- docker load < $(guix time-machine -C channels.scm \ -- pack -f docker \ -m manifest.scm) docker run -ti --8<---------------cut here---------------end--------------->8--- For reference, see . Therefore, I do not know if this output format is helping for this. Thanks, simon