mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
fix cache of invalidated unhealthy environment version info
This commit is contained in:
parent
2e0ee5f5b2
commit
b63b37ac36
2 changed files with 26 additions and 1 deletions
|
|
@ -191,7 +191,8 @@ def healthy(prefix: Prefix, language_version: str) -> bool:
|
|||
|
||||
return (
|
||||
'version_info' in cfg and
|
||||
_version_info(py_exe) == cfg['version_info'] and (
|
||||
# always use uncached lookup here in case we replaced an unhealthy env
|
||||
_version_info.__wrapped__(py_exe) == cfg['version_info'] and (
|
||||
'base-executable' not in cfg or
|
||||
_version_info(cfg['base-executable']) == cfg['version_info']
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue