From mboxrd@z Thu Jan 1 00:00:00 1970 From: sleep_walker@suse.cz Subject: ignore trailing slash for `guix gc -d' /gnu/store/...something/ Date: Tue, 3 Feb 2015 00:34:26 +0100 Message-ID: <20150202233426.GA28580@venom.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIQVm-0008IV-TM for guix-devel@gnu.org; Mon, 02 Feb 2015 18:34:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIQVg-0005P6-SG for guix-devel@gnu.org; Mon, 02 Feb 2015 18:34:34 -0500 Received: from cantor2.suse.de ([195.135.220.15]:44280 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIQVg-0005Oq-Lg for guix-devel@gnu.org; Mon, 02 Feb 2015 18:34:28 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4D867AAD1 for ; Mon, 2 Feb 2015 23:34:27 +0000 (UTC) Content-Disposition: inline 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org 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/mgqk0kv5jckrd7l5cwj68fp7cz2l4qqj-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 consistent for all commands