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 gCI0BhOBHmCwNwAA0tVLHw (envelope-from ) for ; Sat, 06 Feb 2021 11:44:19 +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 WN/9AROBHmA8TgAAB5/wlQ (envelope-from ) for ; Sat, 06 Feb 2021 11:44:19 +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 A11F19401DF for ; Sat, 6 Feb 2021 11:44:18 +0000 (UTC) Received: from localhost ([::1]:40952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8M0f-0000VS-Fv for larch@yhetil.org; Sat, 06 Feb 2021 06:44:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8M0Q-0000Uu-Nv for guix-patches@gnu.org; Sat, 06 Feb 2021 06:44:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8M0Q-0003b8-HK for guix-patches@gnu.org; Sat, 06 Feb 2021 06:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8M0Q-0006aZ-FV for guix-patches@gnu.org; Sat, 06 Feb 2021 06:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46215] [PATCH] Add yadm Resent-From: Ellis =?UTF-8?Q?Keny=C5=91?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Feb 2021 11:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46215 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: leo.prikler@student.tugraz.at, 46215@debbugs.gnu.org X-Debbugs-Original-Cc: Leo Prikler , 46215@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161261181925290 (code B ref -1); Sat, 06 Feb 2021 11:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2021 11:43:39 +0000 Received: from localhost ([127.0.0.1]:45284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8M02-0006Zq-Uy for submit@debbugs.gnu.org; Sat, 06 Feb 2021 06:43:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:35046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8M00-0006ZZ-59 for submit@debbugs.gnu.org; Sat, 06 Feb 2021 06:43:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8Lzz-0000R5-Tv for guix-patches@gnu.org; Sat, 06 Feb 2021 06:43:35 -0500 Received: from mail.elken.dev ([165.22.120.78]:50305) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8Lzx-0003Jx-77 for guix-patches@gnu.org; Sat, 06 Feb 2021 06:43:35 -0500 Received: from authenticated-user (mail.elken.dev [165.22.120.78]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.elken.dev (Postfix) with ESMTPSA id 5ED153F165; Sat, 6 Feb 2021 12:43:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elken.dev; s=mail; t=1612611809; bh=EHgTE+fvRmnt+62sO7vN300Ng3DrGbCS/nzY3D65mg4=; h=In-Reply-To:References:Subject:From:Date:To:CC:From; b=BlSKRNAZnpeoNL3L2EIto92IiFrzOPUGQ4msHvuGf44EIDlBUkZHlqwOILR14pNVv 8BwoXN0gfBaPdw7Wqr5MLNdwWxQKfm6WpH8qpcrfSRgQDvXwnVNAvbxaLrpNAr66we GyPsAgweeOeEiHPmxVxLSH/8AjgfWsyqAIa543yt0lIFYVeWIHtDVzRbUfaIfJiAKq uyUmCusxzHsOC9Dhel7NGJ78EpLh0kO1EBG4JpXzBBR19HpdMavgK+UiuICvRts+/G JAf85wZdGLu6dn8uA7FqSXLTRsm4q1kspJsMB/bpZb0qsZwUKg4KnVIz3WL6K/tO2f OX7BbvHjELRzg== In-Reply-To: <871rdtxwkx.fsf@nckx> References: <20210131164721.8792-1-me@elken.dev> <84ab5054792abeb5e9b85d21229cd7182204d817.camel@student.tugraz.at> <87czxkc0yv.fsf@elken.dev> <0ff6a0c2cc9a2f65cd51c1eeb9e6a33aa4789766.camel@student.tugraz.at> <669deac8-ffa5-42ba-8741-3cae0b18220e@elken.dev> <38ed969df583e9254802fa7a4a80299ec5caddc4.camel@student.tugraz.at> <9efaa5895bc488ddd4fd8c456aa5c2fdf09cb4af.camel@student.tugraz.at> <87pn1dpkwr.fsf@elken.dev> <9b32a7b7-9664-4108-a66c-f3de42d10c68@elken.dev> <871rdtxwkx.fsf@nckx> X-Referenced-Uid: 2619 Thread-Topic: Re: [bug#46215] [PATCH] Add yadm X-Is-Generated-Message-Id: true MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----7ML3IOUIQNY4CECWC3VK218LQFFT2T" Content-Transfer-Encoding: 7bit Date: Sat, 06 Feb 2021 11:43:28 +0000 Message-ID: <69ac9a7c-8e9f-44b4-8cbd-f860262350a9@elken.dev> Received-SPF: pass client-ip=165.22.120.78; envelope-from=me@elken.dev; helo=mail.elken.dev 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: 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" Reply-to: Ellis =?UTF-8?Q?Keny=C5=91?= X-ACL-Warn: , Ellis =?UTF-8?Q?Keny=C5=91?= via Guix-patches From: Ellis =?UTF-8?Q?Keny=C5=91?= via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elken.dev header.s=mail header.b=BlSKRNAZ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: A11F19401DF X-Spam-Score: -2.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: G3Jidehn4WwX ------7ML3IOUIQNY4CECWC3VK218LQFFT2T Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi Tobias, Yes I am aware that it's more complicated than the initial ques= tion, I'm fine with adding all the dependencies as inputs=2E I was simply = asking the correct way to handle optional inputs=2E > Does that not work? = Yes it would absolutely work, I have tested as such in depth on multiple g= uix systems=2E > For things like templates {native-,}search-paths can be a= solution, depending on how yadm (or its templating library) searches for= these=2E Yes I still have further testing with regards to templates as I = don't personally use them=2E Thanks you for your input Tobias On 6 Feb 2= 021, 11:37, at 11:37, Tobias Geerinckx-Rice wrote: >Ellis,= > >Ellis Keny=C5=91 via Guix-patches via =E5=86=99=E9=81=93=EF=BC=9A >> I = was asking if there was a simple way to handle optional >> inputs=2E > >Wh= ile this is an oxymoron for the reasons pointed out by Leo, >there is _not= hing_ wrong with simply leaving some variables at >their default e=2Eg=2E = > > GPG_PROGRAM=3D"gpg" > >and letting yadm look them up at run time in it= s $PATH=2E > >Does that not work? > >For things like templates {native-,}se= arch-paths can be a >solution, depending on how yadm (or its templating li= brary) >searches for these=2E > >Kind regards, > >T G-R ------7ML3IOUIQNY4CECWC3VK218LQFFT2T Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi Tobias,
Yes I am aware that it's more complicated th= an the initial question, I'm fine with adding all the dependencies as input= s=2E

I was simply asking the correct way to= handle optional inputs=2E

> Does that n= ot work?

Yes it would absolutely work, I ha= ve tested as such in depth on multiple guix systems=2E

> For things like templates {native-,}search-paths can be a =
solution, depending on how yadm (or its templa= ting library)
searches for these=2E

Yes I still have further testing with regards to temp= lates as I don't personally use them=2E

Tha= nks you for your input Tobias
On 6 Feb 2= 021, at 11:37, Tobias Geerinckx-Rice <me@tobias=2Egr> wrote:
Ellis,

Ellis Ke= ny=C5=91 via Guix-patches via =E5=86=99=E9=81=93=EF=BC=9A
I was asking if there was a simple way = to handle optional
inputs=2E

While this is an oxym= oron for the reasons pointed out by Leo,
there is _nothing_ wrong with = simply leaving some variables at
their default e=2Eg=2E

GPG_PR= OGRAM=3D"gpg"

and letting yadm look them up at run time in its $PATH= =2E

Does that not work?

For things like templates {native-,}s= earch-paths can be a
solution, depending on how yadm (or its templating= library)
searches for these=2E

Kind regards,

T G-R
------7ML3IOUIQNY4CECWC3VK218LQFFT2T--