(Translated by https://www.hiragana.jp/)
Avoid resolving paths on fragments by holzensp · Pull Request #357 · apple/pkl · GitHub
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

Avoid resolving paths on fragments #357

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

holzensp
Copy link
Contributor

The more principled solution is to have importUri be a URI instead of a String and to test its scheme.

Generally, the problem is that URI::resolve can not assume fragments to be a path (and that it discards fragments altogether).

Copy link
Contributor

@bioball bioball left a comment

Choose a reason for hiding this comment

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

Approving to unblock, just one minor comment.

pkl-doc/src/main/kotlin/org/pkl/doc/DocPackageInfo.kt Outdated Show resolved Hide resolved
Copy link
Contributor

@stackoverflow stackoverflow left a comment

Choose a reason for hiding this comment

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

LGTM

@bioball bioball force-pushed the pholzenspies/docPackageUriFix branch from fea0f00 to bfb053f Compare March 26, 2024 14:54
@bioball bioball merged commit e347b26 into apple:main Mar 26, 2024
5 checks passed
bioball pushed a commit that referenced this pull request Mar 26, 2024
Fixes an issue where modules with fragment paths are resolved against the URI path.
@holzensp holzensp deleted the pholzenspies/docPackageUriFix branch October 7, 2024 14:35
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.

3 participants