Subject: The local-file()'s error message is misleading.
From: "Vitaliy Shatrov" <[email-masked]>
To: "Das Guixen" <[email-masked]>
Date: Thu, 01 Oct 2020 04:56:08 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello there.
I ran in bash shell:

pwd
--> /home/vits

conf=~/guix/configuration/configuration.scm

ls $conf   # file exists
--> ~/guix/configuration/configuration.scm

guix system build $conf
--> guix system: error: failed to load
'/home/vits/guix/configuration/configuration.scm': No such file or directory

The commands above will result in a successfull build if i
`cd guix/configuration` before doing `guix system build`
(both with rel. and abs. names).

Attached is WORKING config.scm.  Error was caused by local-file()
used with _relative_ paths.  Those were commented out, and this
config.scm works from any directory.

#guix:
> ... error message is very misleading.

Better of course if the offending file will be print out:
"failed to load (...) /home/vits/auto-login:  no such file or directory"

---
Thanks for attention, Vitaliy.