From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#38529: Make --ad-hoc the default for guix environment proposed deprecation mechanism Date: Mon, 16 Dec 2019 23:09:37 +0100 Message-ID: <87k16vdise.fsf__8519.76139690436$1576534224$gmane$org@gnu.org> References: <87eexeu8mo.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35810) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igyZ4-0004Ok-TF for bug-guix@gnu.org; Mon, 16 Dec 2019 17:10:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igyZ0-000533-Ft for bug-guix@gnu.org; Mon, 16 Dec 2019 17:10:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34463) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igyZ0-00052o-DM for bug-guix@gnu.org; Mon, 16 Dec 2019 17:10:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1igyZ0-0005d6-8M for bug-guix@gnu.org; Mon, 16 Dec 2019 17:10:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: ("=?UTF-8?Q?G=C3=A1bor?= Boskovits"'s message of "Fri, 13 Dec 2019 17:27:52 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: Guix-devel , 38529@debbugs.gnu.org Hello, G=C3=A1bor Boskovits skribis: > So in a more algorithmic manner: > 1. if ad-hoc and inputs-of is present at the same invocation: fail > hard. (With an error like incompatible options present) > 2. if only ad-hoc is present, then print a deprecation warning (yes, > we could make this suspendable with an environment variable, like you > described) > 3. if only inputs-of present, then do the new behaviour. > 4. if neither ad-hoc nor inputs-of present then > a. if GUIX_ENVIRONMENT_DEPRECATED is 1: do the current behaviour, > b. if GUIX_ENVIRONMENT_DEPRECATED is undefined, or is not 1: do the > new behaviour. That sounds like a good plan to me. #4 is the trickiest, and I think it=E2=80=99d be good to give users a bit of time so they can start adjusting before deprecation is in effect. Namely, we could start by introducing =E2=80=98--inputs-of=E2=80=99 and emi= tting a warning in case #4 to suggest the use of =E2=80=98--inputs-of=E2=80=99. Ap= art from the warning, case #4 would still behave the same as now. Three (?) months later, we implement what you describe above. Hopefully by that time many people got used to =E2=80=98--inputs-of=E2=80=99. Thoughts? Ludo=E2=80=99.