Trying to run nix tests - bash not found

I’m trying to run the nix tests and getting a bash-not-found error.

this derivation will be built:
      /run/user/1000/nix-test/tests/flakes/flakes/store/453pbn540n3zkxq6qfw51bgj20xz38h4-simple.drv
    building '/run/user/1000/nix-test/tests/flakes/flakes/store/453pbn540n3zkxq6qfw51bgj20xz38h4-simple.drv'...
    error:
           error: builder for '/run/user/1000/nix-test/tests/flakes/flakes/store/453pbn540n3zkxq6qfw51bgj20xz38h4-simple.drv' failed with exit code 1;
           last 2 log lines:
           > error:
           >        error: executing '/nix/store/dzrvibwj2vjwqmc34wk3x1ffsjpp4av7-bash-4.4-p23/bin/bash': No such file or directory
           For full logs, run 'nix log /run/user/1000/nix-test/tests/flakes/flakes/store/453pbn540n3zkxq6qfw51bgj20xz38h4-simple.drv'.
    ++(flakes.sh:111) onError
    ++(/home/bburdette/op-code/nix/tests/common/vars-and-functions.sh:237) set +x
    flakes.sh: test failed at:
      main in flakes.sh:111
make: *** [mk/lib.mk:125: tests/flakes/flakes.sh.test] Error 1

I get similar errors with [nix-shell:~/op-code/nix]$ ./mk/run-test.sh tests/repl.sh:

   error:
           error: executing '\''/nix/store/dzrvibwj2vjwqmc34wk3x1ffsjpp4av7-bash-4.4-p23/bin/bash'\'': No such file or directory'
    +(repl.sh:27) echo '

My system is using flakes. Before trying these tests I’m doing the typical steps:

nix develop
./bootstrap.sh
./configure $configureFlags --prefix=$(pwd)/outputs/out
make -j8
make install 
1 Like

Gave it a try on a fresh clone of the repo, and working now. Solved I guess!

1 Like