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

fix: outer_env issues fixed #874

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented Oct 27, 2024

Fix #868. Two issues:

  • Setting include_outer_env=False does nothing at all if env= is not passed. The outer env is still included.
  • Required environment variables set by nox itself, like VIRTUAL_ENV (required for uv), and CONDA_PREFIX (required for conda-family) would not be included if you do set both.

Fixing this was a bit intrusive: now .env only is the local environment
settings, and removals are added to it using None. The type has changed to match .command, with the None possibility. And then the final environment is built in the _run, where it can correctly process things like adding the bin dir and filtering the None's.

@henryiii henryiii added the awaiting review Needs a review label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review Needs a review
Development

Successfully merging this pull request may close these issues.

include_outer_env=False will include outer_env when env is not set
1 participant