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

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

mstoykov
Copy link
Contributor

@mstoykov mstoykov commented Feb 5, 2025

What?

Fix open and experimental fs.open and grpc.Client#Load 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.

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.

🚀

@mstoykov mstoykov force-pushed the supportFileSchemeInOpen branch 2 times, most recently from d3333e2 to 759ea7c Compare February 5, 2025 15:37
inancgumus
inancgumus previously approved these changes Feb 6, 2025
Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

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

👍

inancgumus
inancgumus previously approved these changes Feb 6, 2025
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 859bf8f to 4a6b030 Compare February 6, 2025 16:59
@mstoykov mstoykov requested a review from inancgumus February 6, 2025 17:00
@mstoykov mstoykov merged commit 584a865 into master Feb 7, 2025
28 checks passed
@mstoykov mstoykov deleted the supportFileSchemeInOpen branch February 7, 2025 08:04
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
3 participants