From mboxrd@z Thu Jan 1 00:00:00 1970 From: raingloom Subject: bug#38529: Make --pure the default for `guix environment'? Date: Mon, 30 Dec 2019 18:27:17 +0100 Message-ID: <0eda3cfa6b08d9e58249eac6d41df0c0af33f681.camel@riseup.net> References: <87eexeu8mo.fsf@ambrevar.xyz> <87o8wgksnp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56496) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilypm-00052y-TA for bug-guix@gnu.org; Mon, 30 Dec 2019 12:28:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilypl-0006fV-TD for bug-guix@gnu.org; Mon, 30 Dec 2019 12:28:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilypl-0006fQ-QV for bug-guix@gnu.org; Mon, 30 Dec 2019 12:28:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ilypl-0006C6-Mu for bug-guix@gnu.org; Mon, 30 Dec 2019 12:28:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87o8wgksnp.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= , "Thompson, David" Cc: Pierre Neidhardt , 38529@debbugs.gnu.org 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".