From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: ignore trailing slash for `guix gc -d' /gnu/store/...something/ Date: Tue, 03 Feb 2015 21:57:04 +0100 Message-ID: <87wq3yogrj.fsf@gnu.org> References: <20150202233426.GA28580@venom.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20150202233426.GA28580@venom.fritz.box> (sleep walker's message of "Tue, 3 Feb 2015 00:34:26 +0100") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: sleep_walker@suse.cz Cc: guix-devel@gnu.org, bug-guix@gnu.org List-Id: bug-guix.gnu.org sleep_walker@suse.cz skribis: > Package: guix > Version: 0.8.1 > > When I invoke `guix gc -d /path', success of the command depends whether = /path ends with slash or not: > > $ guix gc -d /gnu/store/mgqk0kv5jckrd7l5cwj68fp7cz2l4qqj-luajit-2.0.3/ > guix gc: error: build failed: path `/gnu/store/mgqk0kv5jckrd7l5cwj68fp7cz= 2l4qqj-luajit-2.0.3/' is not in the Nix store > > $ guix gc -d /gnu/store/mgqk0kv5jckrd7l5cwj68fp7cz2l4qqj-luajit-2.0.3 > finding garbage collector roots... > cannot read potential root `/var/guix/manifests' > deleting `/gnu/store/73b760g2nr9syhznydgly8r7vl2k9z11-profile' > deleting `/gnu/store/mgqk0kv5jckrd7l5cwj68fp7cz2l4qqj-luajit-2.0.3' > deleting `/gnu/store/trash' > deleting unused links... > note: currently hard linking saves 247.60 MiB > > > * with the misleading error message it is usability bug > * it should be safe always try to remove slash from the end > * other commands may be affected too and the behaviour should be consiste= nt for all commands What behavior do you think would be appropriate when running, say: guix gc -d /gnu/store/mgqk0kv5jckrd7l5cwj68fp7cz2l4qqj-luajit-2.0.3/bin/l= ua Should it be equivalent to: guix gc -d /gnu/store/mgqk0kv5jckrd7l5cwj68fp7cz2l4qqj-luajit-2.0.3 I would think so, but I=E2=80=99d like to have feedback. Thanks, Ludo=E2=80=99. PS: Make sure to use bug-guix@gnu.org for bug reports.