From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: 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@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]:35696) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igyYe-00049q-Ld for guix-devel@gnu.org; Mon, 16 Dec 2019 17:09:41 -0500 In-Reply-To: (=?utf-8?Q?=22G=C3=A1bor?= Boskovits"'s message of "Fri, 13 Dec 2019 17:27:52 +0100") 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" 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.