This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
checkov hook crashes importing LegacyVersion from packaging module #223
Labels
bug
Something isn't working
Describe the bug
Pre-commit hook crashes while checkov importing LegacyVersion from packaging module which prevents commiting.
Current behavior
Checkov hook crashes with the following error:
ImportError: cannot import name 'LegacyVersion' from 'packaging.version' (/Users/alp/.cache/pre-commit/repovr64b5yh/py_env-python3.11/lib/python3.11/site-packages/packaging/version.py)
Bug report and PR on checkov project.
bridgecrewio/checkov#4011
bridgecrewio/checkov#4012
Possible solution
Use checkov version 2.2.125 in pre-commit hook which uses a pinned version of packaging for now.
The text was updated successfully, but these errors were encountered: