The simplest solution for now is that when an error occur because of this, run hatch env prune to delete all environnement and thenhatch env create to recreate the default environnment
Alright, this should be resolved in hatch-pip-compile 1.11.2. The fix for this was very easy, but frustratingly involved re-writing a good part of my test suite.
https://github.com/pypa/hatch/issues/1468 https://github.com/juftin/hatch-pip-compile/pull/80
The simplest solution for now is that when an error occur because of this, run
hatch env prune
to delete all environnement and thenhatch env create
to recreate the default environnment