Skip to content

fix: Use runtime FS case-sensitivity check in cspell and taskfile tests#1613

Closed
Zamiell wants to merge 2 commits intowebpro-nl:mainfrom
Zamiell:fix-case-sensitivity
Closed

fix: Use runtime FS case-sensitivity check in cspell and taskfile tests#1613
Zamiell wants to merge 2 commits intowebpro-nl:mainfrom
Zamiell:fix-case-sensitivity

Conversation

@Zamiell
Copy link
Copy Markdown
Contributor

@Zamiell Zamiell commented Mar 14, 2026

I cloned the knip repo and ran pnpm test and it just immediately fails.
The reason is because knip assumes that if you are on Windows, you are on a case insensitive file system.
But this is not true - it is best practice to set your "repositories" directory to be case sensitive.

Thus, this PR replaces process.platform === 'win32' checks with a helper that tests actual filesystem case-sensitivity at runtime.

Claude helped me write this.

Zamiell and others added 2 commits March 14, 2026 09:09
Replace `process.platform === 'win32'` checks with a helper that tests
actual filesystem case-sensitivity at runtime. Windows directories can
have per-directory case-sensitivity enabled, making the platform check
an unreliable proxy.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 14, 2026

Open in StackBlitz

npm i https://pkg.pr.new/knip@1613
npm i https://pkg.pr.new/@knip/language-server@1613
npm i https://pkg.pr.new/@knip/mcp@1613

commit: f3fbf9c

@Zamiell Zamiell changed the title Use runtime FS case-sensitivity check in cspell and taskfile tests fix: Use runtime FS case-sensitivity check in cspell and taskfile tests Mar 14, 2026
@webpro
Copy link
Copy Markdown
Member

webpro commented Mar 18, 2026

Appreciate the PR, but should not be an issue after merging #1462.

@webpro webpro closed this Mar 18, 2026
@Zamiell Zamiell deleted the fix-case-sensitivity branch April 2, 2026 22:47
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