* ignore trailing slash for `guix gc -d' /gnu/store/...something/
@ 2015-02-02 23:34 sleep_walker
2015-02-03 20:57 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: sleep_walker @ 2015-02-02 23:34 UTC (permalink / raw)
To: guix-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ignore trailing slash for `guix gc -d' /gnu/store/...something/
2015-02-02 23:34 ignore trailing slash for `guix gc -d' /gnu/store/...something/ sleep_walker
@ 2015-02-03 20:57 ` Ludovic Courtès
2015-02-25 20:24 ` Tomáš Čech
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2015-02-03 20:57 UTC (permalink / raw)
To: sleep_walker; +Cc: guix-devel, bug-guix
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/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
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’d like to have feedback.
Thanks,
Ludo’.
PS: Make sure to use bug-guix@gnu.org for bug reports.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ignore trailing slash for `guix gc -d' /gnu/store/...something/
2015-02-03 20:57 ` Ludovic Courtès
@ 2015-02-25 20:24 ` Tomáš Čech
0 siblings, 0 replies; 3+ messages in thread
From: Tomáš Čech @ 2015-02-25 20:24 UTC (permalink / raw)
To: guix-devel, bug-guix
[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]
Sorry for late response.
On Tue, Feb 03, 2015 at 09:57:04PM +0100, Ludovic Courtès 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/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
>
>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’d like to have feedback.
I think so as well.
>
>Thanks,
>Ludo’.
>
>PS: Make sure to use bug-guix@gnu.org for bug reports.
Sorry about that, I'm still getting used to GNU's bugtracker...
[-- Attachment #2: Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-25 20:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-02 23:34 ignore trailing slash for `guix gc -d' /gnu/store/...something/ sleep_walker
2015-02-03 20:57 ` Ludovic Courtès
2015-02-25 20:24 ` Tomáš Čech
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).