Ting-Wei Lan <[email protected]> skribis: > It seems to me that the reason is that NIX_STORE_DIR is exported by > test-env script, so the line > NIX_STORE_DIR="`guile -c '(use-modules (guix config))(display %storedir)'`" > not only changes the value of shell variable NIX_STORE_DIR but also > exports it to the environment. > Therefore, the next line > localstatedir="`guile -c '(use-modules (guix config))(display > %localstatedir)'`" > crashes at guix/config.scm when running the code > (define %store-directory > (or (and=> (getenv "NIX_STORE_DIR") canonicalize-path) > %storedir)) > because NIX_STORE_DIR points to a non-existent path /gnu/store. > I attached a patch to avoid the crash by delaying the modification > to NIX_STORE_DIR, but I am not sure if it is correct to do so.
Indeed. Pushed as baab87ac49e3f0f873e17eb16db9781189b1f2d1, thanks! Ludo’.
