Skip to content

fix: restore handling of zipfile: schema for neovim + yarn berry #862

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

Merged
merged 6 commits into from
Feb 2, 2024

Conversation

rchl
Copy link
Member

@rchl rchl commented Jan 31, 2024

During earlier refactoring the zipfile: schema override handling for neovim+yarn pnp has been broken. Those changes should restore proper functioning.

Using the URI class to parse zipfile: URIs back and forth doesn't preserve triple slashes after the schema which yarn SDK expects to be there for neovim handling.

Introduced a subclass of URI - ZipfileURI - that persists the original URI and returns it from toString() so that yarn and neovim get what they expect.

Resolves #843

@github-actions github-actions bot added the fix label Jan 31, 2024
Copy link
Contributor

github-actions bot commented Jan 31, 2024

size-limit report 📦

Path Size
lib/cli.mjs 779.9 KB (+0.18% 🔺)

@rchl rchl merged commit caca007 into master Feb 2, 2024
@rchl rchl deleted the fix/zipfile-handling branch February 2, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

toResource incorrectly calls URI.parse on zipfile:// resources
1 participant