From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 30 12:27:37 2019 Received: (at 38529) by debbugs.gnu.org; 30 Dec 2019 17:27:37 +0000 Received: from localhost ([127.0.0.1]:33316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilypN-0006BS-5W for submit@debbugs.gnu.org; Mon, 30 Dec 2019 12:27:37 -0500 Received: from mx1.riseup.net ([198.252.153.129]:53378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilypL-0006BK-36 for 38529@debbugs.gnu.org; Mon, 30 Dec 2019 12:27:35 -0500 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 47mks228dLzDs7J; Mon, 30 Dec 2019 09:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1577726854; bh=9mPSHOzgRUnFTCS+zmImFvD2eqVujggYwgL1mQUHOMM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=qQuHRPqs9zyT+d9mBv06G886cB+RMcBAhEDfhSo+EqPM5JlxjTq/VIcQC39tmsrJJ +gbM4aMA6IFk7ZpFyLH5jW8FeF5rJOYKbfE/EJqIF2Y1hj6vaNkQEGGuCwJVEZySiY bwuelwlF81uIiN8OluVqRDY2O0tEM7uPUEIn19Ds= X-Riseup-User-ID: 10BF4D5527408382E137A1FF81D324FB3AD892B00FC08D5A62A59710F7BC6A41 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 47mks06DkZzJqrk; Mon, 30 Dec 2019 09:27:32 -0800 (PST) Message-ID: <0eda3cfa6b08d9e58249eac6d41df0c0af33f681.camel@riseup.net> Subject: Re: bug#38529: Make --pure the default for `guix environment'? From: raingloom To: Ludovic =?ISO-8859-1?Q?Court=E8s?= , "Thompson, David" Date: Mon, 30 Dec 2019 18:27:17 +0100 In-Reply-To: <87o8wgksnp.fsf@gnu.org> References: <87eexeu8mo.fsf@ambrevar.xyz> <87o8wgksnp.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 38529 Cc: Pierre Neidhardt , 38529@debbugs.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: -1.7 (-) On Tue, 2019-12-10 at 18:16 +0100, Ludovic Courtès wrote: > As for ‘--ad-hoc’: making it the default is technically easy. The > difficulty is to come up with a nice transition/deprecation mechanism > so > that we don’t break everyone’s script overnight. > > Ideas on how to achieve it are welcome! > > Thanks, > Ludo’. > > Why not make it fully explicit, without either being the default? It would make script more readable too. Then the deprecation is as easy as printing a warning when the invocation relies on the default. For example `guix environment hello` would become `guix environment -- inputs-of hello`. Not using `--inputs-of` would print something like "warning: implicit --inputs-of is deprecated".