Closed juftin closed 7 months ago
The issue is here: https://github.com/juftin/hatch-pip-compile/blob/46d698dcf943ea6c8d55320c09c12f0283666052/hatch_pip_compile/plugin.py#L326-L330
environment.sync_dependencies()
needs to be called and maybe environment.install_project_...()
The ideal solution for this is actually detailed in https://github.com/pypa/hatch/discussions/1227
There will likely be a short term fix but hopefully will be improved.
:tada: This issue has been resolved in version 1.10.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
When a constraint environment doesn't exist and is created by another environment its lockfile is created but not installed - the environment is left in a bad state and
ImportErrors
are thrown:Reproduction
.venv
in my case)