GNU bug report logs - #64074
guix [COMMAND] --load-path does not check if path is valid

Previous Next

Package: guix;

Reported by: Christian Miller <miller.christian <at> proton.me>

Date: Wed, 14 Jun 2023 22:48:01 UTC

Severity: normal

Done: Christian Miller <miller.christian <at> proton.me>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64074 in the body.
You can then email your comments to 64074 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#64074; Package guix. (Wed, 14 Jun 2023 22:48:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christian Miller <miller.christian <at> proton.me>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 14 Jun 2023 22:48:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christian Miller <miller.christian <at> proton.me>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: guix [COMMAND] --load-path does not check if path is valid
Date: Wed, 14 Jun 2023 22:47:41 +0000
[Message part 1 (text/plain, inline)]
User can set load path with -L or --load-path in commands like guix build, guix time-machine and so on. But this flag does not check if the path is actually a valid directory. You can point to a directory that doesn't even exist on the filesystem. It should do that just like the -f or --file flag for the guilx build command.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#64074; Package guix. (Thu, 15 Jun 2023 12:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 64074 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Christian Miller <miller.christian <at> proton.me>
Cc: 64074 <at> debbugs.gnu.org
Subject: Re: bug#64074: guix [COMMAND] --load-path does not check if path is
 valid
Date: Thu, 15 Jun 2023 14:39:47 +0200
Hi,

Christian Miller <miller.christian <at> proton.me> skribis:

> User can set load path with -L or --load-path in commands like guix
> build, guix time-machine and so on. But this flag does not check if
> the path is actually a valid directory. You can point to a directory
> that doesn't even exist on the filesystem.

Indeed.  That’s the same for all similar search path command-line flags
(think ‘gcc -I…’, ‘ld -L…’, and so on).

> It should do that just like the -f or --file flag for the guilx build
> command.

I don’t think so; I think tolerating non-existent directories in the
search path is useful.

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#64074; Package guix. (Fri, 16 Jun 2023 18:20:02 GMT) Full text and rfc822 format available.

Message #11 received at 64074 <at> debbugs.gnu.org (full text, mbox):

From: Christian Miller <miller.christian <at> proton.me>
To: "64074 <at> debbugs.gnu.org" <64074 <at> debbugs.gnu.org>
Subject: guix [COMMAND] --load-path does not check if path is valid
Date: Fri, 16 Jun 2023 18:19:08 +0000
Hello,

well in that case, if it is consistent with other GNU tools, it makes sense and this can be closed.  Though before closing, do you may have an example for invalid paths that could be useful?

Best Regards
Christian Miller




Information forwarded to bug-guix <at> gnu.org:
bug#64074; Package guix. (Fri, 16 Jun 2023 22:25:02 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Csepp <raingloom <at> riseup.net>
To: Christian Miller <miller.christian <at> proton.me>
Cc: "64074 <at> debbugs.gnu.org" <64074 <at> debbugs.gnu.org>, bug-guix <at> gnu.org
Subject: Re: bug#64074: guix [COMMAND] --load-path does not check if path is
 valid
Date: Sat, 17 Jun 2023 00:22:52 +0200
Christian Miller via Bug reports for GNU Guix <bug-guix <at> gnu.org> writes:

> Hello,
>
> well in that case, if it is consistent with other GNU tools, it makes
> sense and this can be closed.  Though before closing, do you may have
> an example for invalid paths that could be useful?
>
> Best Regards
> Christian Miller

If I add ~/.local/bin to my $PATH and then delete that directory, I
don't want my shell to abort with an error.
I've also seen configure scripts add /usr/include, which doesn't exist
on Guix.




Information forwarded to bug-guix <at> gnu.org:
bug#64074; Package guix. (Fri, 16 Jun 2023 22:25:02 GMT) Full text and rfc822 format available.

Reply sent to Christian Miller <miller.christian <at> proton.me>:
You have taken responsibility. (Wed, 28 Jun 2023 14:42:02 GMT) Full text and rfc822 format available.

Notification sent to Christian Miller <miller.christian <at> proton.me>:
bug acknowledged by developer. (Wed, 28 Jun 2023 14:42:02 GMT) Full text and rfc822 format available.

Message #22 received at 64074-done <at> debbugs.gnu.org (full text, mbox):

From: Christian Miller <miller.christian <at> proton.me>
To: "64074-done <at> debbugs.gnu.org" <64074-done <at> debbugs.gnu.org>
Subject: guix [COMMAND] --load-path does not check if path is valid
Date: Wed, 28 Jun 2023 14:40:50 +0000
Since this behavior is consistent with other GNU tools and my question has been answered, I close the issue.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 27 Jul 2023 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 329 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.