Skip to content

Fix Windows long-path failures during clone in scan-all.sh#10

Merged
BjornvdLaan merged 1 commit intomainfrom
claude/setup-pqc-scanning-reqt5
Apr 30, 2026
Merged

Fix Windows long-path failures during clone in scan-all.sh#10
BjornvdLaan merged 1 commit intomainfrom
claude/setup-pqc-scanning-reqt5

Conversation

@BjornvdLaan
Copy link
Copy Markdown
Contributor

Repositories with deeply nested paths (e.g. Keycloak) fail to clone on
Windows with 'Filename too long' because the working tree exceeds the
260-character MAX_PATH limit. Pass core.longpaths=true to git clone so
it bypasses MAX_PATH; the flag is harmless on Linux/macOS.

Also detect a partial checkout left behind by a previous failed clone
and re-run checkout instead of silently scanning an incomplete tree.

Repositories with deeply nested paths (e.g. Keycloak) fail to clone on
Windows with 'Filename too long' because the working tree exceeds the
260-character MAX_PATH limit. Pass core.longpaths=true to git clone so
it bypasses MAX_PATH; the flag is harmless on Linux/macOS.

Also detect a partial checkout left behind by a previous failed clone
and re-run checkout instead of silently scanning an incomplete tree.
@BjornvdLaan BjornvdLaan merged commit 9359968 into main Apr 30, 2026
1 check passed
@BjornvdLaan BjornvdLaan deleted the claude/setup-pqc-scanning-reqt5 branch April 30, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants