Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shahinism opened this issue Jul 19, 2024 · 1 comment
Open

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

shahinism opened this issue Jul 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@shahinism
Copy link
Collaborator

shahinism commented Jul 19, 2024

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
Copy link
Collaborator Author

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

shahinism added a commit that referenced this issue Jul 19, 2024
shahinism added a commit that referenced this issue Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant