From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?VG9tw6HFoSDEjGVjaA==?= Subject: Re: ignore trailing slash for `guix gc -d' /gnu/store/...something/ Date: Wed, 25 Feb 2015 21:24:45 +0100 Message-ID: <20150225202445.GA10407@venom> References: <20150202233426.GA28580@venom.fritz.box> <87wq3yogrj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQiVt-0007yI-BX for guix-devel@gnu.org; Wed, 25 Feb 2015 15:25:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQiVp-0008IP-0r for guix-devel@gnu.org; Wed, 25 Feb 2015 15:24:57 -0500 Content-Disposition: inline In-Reply-To: <87wq3yogrj.fsf@gnu.org> 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, bug-guix@gnu.org --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sorry for late response. On Tue, Feb 03, 2015 at 09:57:04PM +0100, Ludovic Court=C3=A8s wrote: >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/mgqk0kv5jckrd7l5cwj68fp7c= z2l4qqj-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 consist= ent 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/= lua > >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. I think so as well. > >Thanks, >Ludo=E2=80=99. > >PS: Make sure to use bug-guix@gnu.org for bug reports. Sorry about that, I'm still getting used to GNU's bugtracker... --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlTuL40ACgkQ37XrCapiVCO6CQCdEexeranGGgvtWcf+Ml3FhXC7 oqMAniZvJSkEhK4j42kP4uPshtxrYIOD =1xNK -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--