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

Should setting any env-vars in an environment prevent those in the template/default being inherited? #1868

Open
awgymer opened this issue Dec 24, 2024 · 0 comments

Comments

@awgymer
Copy link

awgymer commented Dec 24, 2024

I have created a default env with the following:

[tool.hatch.envs.default.env-vars]
PIP_INDEX_URL = "<my-custom-pypi-url>"

I then define a docs env with:

[tool.hatch.envs.docs.env-vars]
PYTHONUNBUFFERED = "1"
MKDOCS_CONFIG = "mkdocs.yml"

And now I notice that the PIP_INDEX_URL is not set to the one in default when I run hatch env show.

Similarly I have a detached lint env and that does not appear to inherit any env-vars despite not setting any itself.

Are these expected behaviours?

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

No branches or pull requests

1 participant