hatch-pip-compile icon indicating copy to clipboard operation
hatch-pip-compile copied to clipboard

🐛 extract relevant output from `hatch env show --json`

Open valentinoli opened this issue 5 months ago • 3 comments

If result.stdout contains something more than the JSON output of all the environments, such as logs from Hatch plugins/hooks, this will result in JSONDecodeError. We must extract the relevant output to prevent such cases.

valentinoli avatar Jul 18 '25 20:07 valentinoli

lol, that was my first time requesting review from co-pilot. It wasn't actually that useful.

Thanks for the contribution, @valentinoli - give me a day or to get a closer look at this but everything looks good on first glance.

juftin avatar Jul 19 '25 03:07 juftin

Perhaps consider parsing hatch.toml/pyproject.toml directly instead

valentinoli avatar Jul 23 '25 14:07 valentinoli

@juftin

Consider #96 as an alternative

valentinoli avatar Jul 23 '25 21:07 valentinoli