From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Subject: bug#38529: Make --ad-hoc the default for guix environment proposed deprecation mechanism Date: Thu, 12 Dec 2019 12:23:44 +0100 Message-ID: References: <87eexeu8mo.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48959) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifMad-0004FF-UB for bug-guix@gnu.org; Thu, 12 Dec 2019 06:25:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifMac-0006ll-60 for bug-guix@gnu.org; Thu, 12 Dec 2019 06:25:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53121) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifMab-0006kh-TQ for bug-guix@gnu.org; Thu, 12 Dec 2019 06:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ifMab-00052p-LK for bug-guix@gnu.org; Thu, 12 Dec 2019 06:25:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: 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: Guix-devel Cc: 38529@debbugs.gnu.org Hello guix, Based on discussion on IRC the following plan for deprecation might work. Comments are welcome: 1. Make guix environment aware of an environment variable: GUIX_ENVIRONMENT_DEPRECATED_AD_HOC if this is defined, then fall back to the current behaviour. Motivation: this would enable most script users to bypass the problem, while fixing them, but it makes the users aware that they are using a deprecated feature. At the same time this should come with a news entry, an any other announcements should be made that we usually do, so that support don't get overloaded. Is should also be announced that two releases later the code supporting this will be removed, so that we don't have to maintain it, but allow enough time for adoption. 2. add a flag to guix environment, something like --ignore-deprecated-ad-hoc, that makes guix environment ignore the environment variable, and default to the new behaviour. Motivation: so that scripts can be fixed individually by modifying the guix environment call to the new version, and adding the flag, so that it does not cause a problem in the trasitional period while the environment variable is defined. 3. on the specified release remove the environment variable support code, and make the flag a noop, and also deprecated. 4. later if needed after an adoption period we can remove the flag. Best regards, g_bor -- OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21