Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows support #214

Merged
merged 11 commits into from
Dec 24, 2024
Merged

Fix windows support #214

merged 11 commits into from
Dec 24, 2024

Conversation

mrginglymus
Copy link

Copy link

changeset-bot bot commented Dec 19, 2024

🦋 Changeset detected

Latest commit: 5143b8a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-import-x Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codesandbox-ci bot commented Dec 19, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@mrginglymus
Copy link
Author

Hmm, the attempt to remove those symlinks has gone badly...

@mrginglymus mrginglymus requested a review from SukkaW December 19, 2024 14:21
src/utils/glob-resolve.ts Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.11%. Comparing base (fbf639b) to head (7e691d7).
Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #214      +/-   ##
==========================================
- Coverage   96.12%   96.11%   -0.02%     
==========================================
  Files         104      105       +1     
  Lines        4752     4782      +30     
  Branches     1633     1646      +13     
==========================================
+ Hits         4568     4596      +28     
- Misses        179      181       +2     
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrginglymus mrginglymus requested a review from SukkaW December 23, 2024 16:44
@SukkaW SukkaW enabled auto-merge (squash) December 24, 2024 13:45
@SukkaW SukkaW merged commit 091d2da into un-ts:master Dec 24, 2024
30 checks passed
errors: [ABSOLUTE_ERROR],
output: 'import f from ".."',
}),
tInvalid({
code: `import f from "${absolutePath('/foo/bar/baz.js')}"`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand this change, it doesn't cover Windows absolute paths.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not possible to do an absolute path import on Windows - or at least, I couldn't work out how to make one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nodejs/node#31710

file:// protocol can be used for Windows absolute path, but of course we maybe not handling file:// protocol previously, same as other protocols like http:// or https://.

But in case that file:// is only for absolute local path like previous, it could be an improvement.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, using a file protocol path seems like a different question to a posix absolute path - or at least an additional feature to be added to this rule.

@mrginglymus mrginglymus deleted the fix-windows branch December 26, 2024 12: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.

Adding windows support
3 participants