DataChefHQ / inception

DataChef's project kickstarter! Reproducible, Declarative and Reliable development environments.
MIT License
8 stars 0 forks source link

System environment path is not available in the devenv shell #21

Open shahinism opened 1 month ago

shahinism commented 1 month ago

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.

shahinism commented 1 month ago

As a temporary solution, I'm going to add the requirements inside devenv until I find further resolution.