From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 06 06:43:39 2021 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 Subject: Re: [bug#46215] [PATCH] Add yadm From: =?UTF-8?Q?Ellis_Keny=C5=91?= Date: Sat, 06 Feb 2021 11:43:28 +0000 To: Tobias Geerinckx-Rice 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-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Leo Prikler , 46215@debbugs.gnu.org, guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) ------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--