Closed OldGrumpyViking closed 8 months ago
Aha this is a fun one 🙂
Indeed this is the problematic part
f"-c {constraints_path}",
The replacement string of a regex is a special syntax with its own escapes, here it's saying probably that for "-c locks\default.lock"
\d
is not a valid escape.
Actually 2 things to do here:
not use special replacement strings, it can instead be a replacement with a lambda that returns the same string
the path should have normal slashes even on Windows
Oh, it's a RegEx + Windows problem 🥴
Thank you so much for reporting this, I'll get it resolved today. I'll also see what I can do to add a Windows testing environment that would've caught this.
There's a regex problem and a Windows problem. The linked pull request is still not fully safe from the regex problem 😅
:tada: This issue has been resolved in version 1.9.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
@juftin & @oprypin thank you very much for the promt fix :) This package is just what i was missing 👍🏻
Tested on python 3.12.1 & hatch 1.9.1 & hatch-pip-compile 1.9.0.
Following pip-compile settings in
pyproject.toml
:Then running
hatch run dev:pip -V
i get the following traceback:The same command works in the default environment
hatch run pip -V