When trying Commitzen, I learned git command is not available. After some debugging realized most of the main paths of my NixOS system are not available in the devenv environment. Thus any command relying on them are going to fail, and is hard to debug.
How to reproduce
import subprocess
p = subprocess.Popen("whereis git".split(" "))
Will return an empty response with return code of -8.
This apparently happens regardless of invoking pure or impure environment (using --impure flag) in devenv.
When trying Commitzen, I learned
git
command is not available. After some debugging realized most of the main paths of my NixOS system are not available in thedevenv
environment. Thus any command relying on them are going to fail, and is hard to debug.How to reproduce
Will return an empty response with return code of -8.
This apparently happens regardless of invoking pure or impure environment (using
--impure
flag) in devenv.