Skip to content

Commit 6d5afd6

Browse files
authored
Debug hatch on CI (#624)
1 parent b567ce8 commit 6d5afd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def github_port(worker_id):
3030
def mock_env(mocker):
3131
"""Clear unwanted environment variables"""
3232
# Anything that starts with RH_ or GITHUB_ or PIP
33-
prefixes = ["GITHUB_", "RH_", "PIP_"]
33+
# Also clear HATCH_ENV_ACTIVE to prevent hatch 1.16+ from inheriting
34+
# the parent environment when running hatch version in subprocesses
35+
prefixes = ["GITHUB_", "RH_", "PIP_", "HATCH_ENV"]
3436
env = os.environ.copy()
3537
for key in list(env):
3638
for prefix in prefixes:

0 commit comments

Comments
 (0)