Fix autoload of direct dependencies for python (#9630)
fixes #9624 merge_config_rules was using `strict=False` to check if a spec satisfies a constraint, which loosely translates to "this spec has no conflict with the constraint, so I can potentially add it to the spec". We want instead `strict=True` which means "the spec satisfies the constraint right now".
Showing
- lib/spack/spack/modules/common.py 1 addition, 1 deletionlib/spack/spack/modules/common.py
- lib/spack/spack/test/data/modules/tcl/autoload_with_constraints.yaml 8 additions, 0 deletions...pack/test/data/modules/tcl/autoload_with_constraints.yaml
- lib/spack/spack/test/modules/tcl.py 17 additions, 0 deletionslib/spack/spack/test/modules/tcl.py
Please register or sign in to comment