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

2023-06-28 Thread Christian Miller via Bug reports for GNU Guix
Since this behavior is consistent with other GNU tools and my question has been 
answered, I close the issue.





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

2023-06-16 Thread Csepp


Christian Miller via Bug reports for GNU Guix  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.





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

2023-06-16 Thread Christian Miller via Bug reports for GNU Guix
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





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

2023-06-15 Thread Ludovic Courtès
Hi,

Christian Miller  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’.





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

2023-06-14 Thread Christian Miller via Bug reports for GNU Guix
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.