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

Support file scheme in open and experimental fs #4513

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mstoykov
Copy link
Contributor

@mstoykov mstoykov commented Feb 5, 2025

What?

Fix open and experimental fs.open to work with file scheme paths

Fixes #4512

Why?

This apparently has never been supported which is likely due to nothing really returning absolute paths.

After adding import.meta.resolve though this is changed. And there is really no reason why it shouldn't be supported.

grpc.Client#load was skipped as there some of this goes through grpc internal library and it seems it might be more involved. I am also less certain it is as required there. Although it will be nice to have it supported in all cases.

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@mstoykov mstoykov requested a review from a team as a code owner February 5, 2025 09:47
@mstoykov mstoykov requested review from inancgumus and oleiade and removed request for a team February 5, 2025 09:47
oleiade
oleiade previously approved these changes Feb 5, 2025
Copy link
Member

@oleiade oleiade left a comment

Choose a reason for hiding this comment

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

🚀

This apparently has never been supported which is likely due to nothing
really returning absolute paths.

After adding import.meta.resolve though this is changed. And there is
really no reason why it shouldn't be supported.

Fixes #4512
@mstoykov mstoykov force-pushed the supportFileSchemeInOpen branch from d3333e2 to 759ea7c Compare February 5, 2025 15:37
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.

open does not recognize that file:// is an absolute URL prefix
2 participants