You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be problematic in CI/CD where you run hatch run +py={{ matrix.python }} matrix:cov and have hatch.python set to a differing version than your current matrix version
In the above example you must have the 3.11 environment available to use pip-compile environments from a matrix because default is a constraint environment
AttributeError: 'NoneType' object has no attribute 'executable'
The way that it's handled in this repo means we generate a lockfile for each Python version - if you wanted one lockfile for all python versions you could handle it like this and forget the hatch matrix entirely:
This can be problematic in CI/CD where you run
hatch run +py={{ matrix.python }} matrix:cov
and havehatch.python
set to a differing version than your current matrix versionIn the above example you must have the
3.11
environment available to usepip-compile
environments from amatrix
becausedefault
is a constraint environmenthttps://github.com/juftin/hatch-pip-compile/actions/runs/7117731072/job/19379122673?pr=28
See how this is handled here:
hatch-pip-compile/.github/workflows/tests.yaml
Lines 41 to 49 in 238fd44
IMO this isn't a bug - but this should probably be documented
The text was updated successfully, but these errors were encountered: