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

python: allow venv to be used in recursive devenv #471

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

bobvanderlinden
Copy link
Contributor

@bobvanderlinden bobvanderlinden commented Mar 8, 2023

Currently whenever you have a project structure like:

.envrc
devenv.nix
subproject/.envrc
subproject/devenv.nix

And you navigate into subproject, you'll get both environment variables from the root and from subproject. This works surprisingly well, however venv doesn't.

It seems as if DEVENV_ROOT from the subproject is being concatenated to DEVENV_ROOT of the parent project by envrc.

To circumvent this venv should stop relying on the runtime DEVENV_ROOT and DEVENV_PROFILE and start relying on the variable from Nix.

@bobvanderlinden bobvanderlinden changed the title fix: allow python venv to be used in recursive devenv python: allow venv to be used in recursive devenv Mar 8, 2023
@domenkozar domenkozar merged commit d0958f1 into cachix:main Mar 9, 2023
@bobvanderlinden bobvanderlinden deleted the pr-python-recursive-devenv branch March 9, 2023 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants