From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6I7IATUyzV/APQAA0tVLHw (envelope-from ) for ; Sun, 06 Dec 2020 19:34:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0DwtOTQyzV8OdQAAB5/wlQ (envelope-from ) for ; Sun, 06 Dec 2020 19:34: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 8CFFA9402B0 for ; Sun, 6 Dec 2020 19:34:12 +0000 (UTC) Received: from localhost ([::1]:33500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klznP-0006LY-Fm for larch@yhetil.org; Sun, 06 Dec 2020 14:34:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klzn0-0006LJ-Ku for guix-devel@gnu.org; Sun, 06 Dec 2020 14:33:46 -0500 Received: from 01d.relay.hey.com ([204.62.114.227]:41609) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klzmz-0005s1-1w for guix-devel@gnu.org; Sun, 06 Dec 2020 14:33:46 -0500 Received: from hey.com (bigip-vip-new.rw-ash-int.37signals.com [10.20.0.24]) by 01.relay.hey.com (Postfix) with ESMTP id A680B1005B3; Sun, 6 Dec 2020 19:33:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hey.com; s=heymail; t=1607283222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=1N9tfOlLsXQejovy9mUFl+9c7VvMZqR0bIYVEXxs9pk=; b=WbrP6oZWaG8NkCL5lXrPjry5qgRP5XAtL2ST464LpNbtwSpERmvsKsORvH8y2odQ00QLsy qnV5rzIzFrMXj5QIq07ZMxX0ilyt3wE4lYD7Hp2aO0DkbNojNMfPnyv3OkIT30+NO+ipaj jzu+Db2rZGVRap3xMiJ+FDawy/PpvMRd+NgVttHVR4QkmB2Z1GYzXMU86C5iW40NgEaRli r7sPy0EKZTjl/yH/nAa9yLz+taNbIesVR9wLsHF55EzeWFuz0M+YZ0I05FI92YATsR0pOm y9wkcAgqa3ekDTzIuwoj+UzosCptpzJWGj7CC8WQAeKkWs/93ZAQAvu/q+Xs4A== Date: Sun, 06 Dec 2020 19:33:31 +0000 From: Ryan Prior To: Development of GNU Guix and the GNU System distribution , Ricardo Wurmus Message-ID: <9046896d7951b7bf5eefa8698d0534f6f703d649@hey.com> In-Reply-To: <875z5f6z1a.fsf@elephly.net> Subject: Re: guix pack file enumerator? Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5fcd320c3e1a7_7a832df01093b7"; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=204.62.114.227; envelope-from=ryanprior@hey.com; helo=01d.relay.hey.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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-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: -1.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hey.com header.s=heymail header.b=WbrP6oZW; dmarc=pass (policy=quarantine) header.from=hey.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: 8CFFA9402B0 X-Spam-Score: -1.50 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: xS7odNW3FaqQ ----==_mimepart_5fcd320c3e1a7_7a832df01093b7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On December 6, 2020, Ricardo Wurmus wrote:=0D > What do you think about adding an output format that is no format at=0D= > all=0D > but a file enumeration printed to stdout? That way I could use =E2=80=9C= guix=0D > pack=E2=80=9D to produce a list of files to transfer and use that to tr= ansfer=0D > only the unchanged files. Alternatively, perhaps we could have a=0D > =E2=80=9Cdirectory=E2=80=9D format that merely copies (or links) the fi= les to a new=0D > directory root.=0D =0D These suggestions comport nicely with the Unix-philosophy and something=0D= like that should probably be implemented for people who want to build=0D their own deploy systems like you're describing.=0D =0D Additionally, I think that the use-case of "deploy this software to some=0D= server that doesn't have Guix installed" is important enough that we=0D might want to support it explicitly such that "guix deploy" does the=0D right thing, doing minimal work to bring the target deployment up-to-=0D date. Is that feasible?=0D ----==_mimepart_5fcd320c3e1a7_7a832df01093b7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =0D =0D =0D =0D =0D =0D =0D =0D =0D =0D
=0D
=0D
On December 6, 2020, Ricardo Wurmus <rekado@elephly.net> wro= te:
What do you think about adding an output format that= is no format at all
but a file enumeration printed to stdout? That wa= y I could use =E2=80=9Cguix
pack=E2=80=9D to produce a list of files t= o transfer and use that to transfer
only the unchanged files. Alternat= ively, perhaps we could have a
=E2=80=9Cdirectory=E2=80=9D format that= merely copies (or links) the files to a new
directory root.

These suggestions comport nicely with the Unix-philosophy and= something like that should probably be implemented for people who want t= o build their own deploy systems like you're describing.

Additiona= lly, I think that the use-case of "deploy this software to some serv= er that doesn't have Guix installed" is important enough that we mig= ht want to support it explicitly such that "guix deploy" does t= he right thing, doing minimal work to bring the target deployment up-to-d= ate. Is that feasible?
=0D
=0D =0D =0D
=0D =0D =0D ----==_mimepart_5fcd320c3e1a7_7a832df01093b7--