Skip to content

Commit df48a67

Browse files
committed
provision: seed loader with state.conf.memory_seed_loaders
Ensure that the provision environment config is available _before_ attempting to load it, otherwise `base` will take the default resulting in values from the testenv being inadvertently inherited.
1 parent da55c69 commit df48a67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tox/provision.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def add_tox_requires_min_version(reqs: list[Requirement]) -> list[Requirement]:
9797
recreate=state.conf.options.recreate and not state.conf.options.no_recreate_provision,
9898
)
9999
provision_tox_env: str = state.conf.core["provision_tox_env"]
100+
state.conf.memory_seed_loaders[provision_tox_env].append(loader)
100101
state.envs._mark_provision(bool(missing), provision_tox_env, loader)
101102

102103
from tox.plugin.manager import MANAGER

0 commit comments

Comments
 (0)