From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: 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]:36897) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifMZb-0003rS-G8 for guix-devel@gnu.org; Thu, 12 Dec 2019 06:24:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifMZa-0004dF-B7 for guix-devel@gnu.org; Thu, 12 Dec 2019 06:23:59 -0500 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:39333) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifMZa-0004Yq-4L for guix-devel@gnu.org; Thu, 12 Dec 2019 06:23:58 -0500 Received: by mail-ed1-x536.google.com with SMTP id v16so1482318edy.6 for ; Thu, 12 Dec 2019 03:23:57 -0800 (PST) In-Reply-To: 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: 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