Open dbehmoaras opened 1 week ago
Thanks for your PR, @dbehmoaras! This is the central function to normalize paths to posix format. So I'm not sure whether this is the right location to fix the issue. What's the exact issue you're trying to solve here?
Thanks for your PR, @dbehmoaras! This is the central function to normalize paths to posix format. So I'm not sure whether this is the right location to fix the issue. What's the exact issue you're trying to solve here?
Hmm - I see your point. Maybe then it should be addressed in file that handles the caching of the results ? The issue we run into is that Knip fails to update the cache on windows systems because it resolves a posix file path when windows env expects a win32 path from node.js - see permalink below:
Is there a separate file that handles win32 file paths ? Open to any approach
Alright, clear.
Maybe you can import path from 'node:path
in file-entry-cache.ts
and take it from there? Fix this.filePath
with path.resolve
, etc.
Ok let me try that
Great, I'm asking so you can directly test it works properly on Windows. If you update the PR, you will automatically get a new version that you can npm install
anywhere, if that helps.
…ct creation