Repository navigation
fix(docker): Pin virtualenv to fix checkov build (broken since 2026-10-09) - #1033
Conversation
virtualenv>=21.14.6 requires packaging>=26.3, but checkov pins packaging<24, so `pip3 check` in checkov.sh fails the image build. Assisted-by: Sisyphus:claude-sonnet-5-5 opencode
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
docker): Pin virtualenv to fix checkov build (broken since 2026-10-09)
There was a problem hiding this comment.
🟢 Approval recommended
The narrow change covers both installation paths consistently, with no identified blocking issues.
No open issues 🎉
What changed in this PR
Constrains virtualenv in the pre-commit installer to avoid its packaging dependency conflict with Checkov during Docker builds.
Changes:
- Applies
virtualenv<21.14.6to both latest and version-specific installations. - Documents why the constraint is needed and when to remove it.
| File | Description |
|---|---|
tools/install/pre-commit.sh |
Adds the dependency constraint while retaining pip3 check. |
Review effort: Balanced
|
This PR is included in version 1.109.3 🎉 |
Put an
xinto the box if that apply:Description of your changes
What
This section was generated by AI.
virtualenv<21.14.6intools/install/pre-commit.sh, sopip3 checkincheckov.shstops failing the Docker build (virtualenv>=21.14.6needspackaging>=26.3,checkovpinspackaging<24)tools/install/*.sh, e.g. fix(trivy): Correct macOS asset name in installer script #1032Why
Blocks #1032
How can we test changes
This section was generated by AI.
docker build --build-arg INSTALL_ALL=true .(amd64):checkov.shpassespip3 check, all later tools installpip checkclean (virtualenv 21.14.5,packaging 23.2); realpre-commit runof alanguage: pythonhook passes;container-structure-test19/19 passedshfmt,shellcheck) ontools/install/pre-commit.shpassedAssisted-by
Specific models used per commit are specified in the commit messages.