Skip to content

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

@shahinism

Description

@shahinism

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions