bug#64074: guix [COMMAND] --load-path does not check if path is valid
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
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
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
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
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.