Skip to content

Fix joining of paths in bundler#5158

Merged
saecki merged 2 commits into
mainfrom
path-joining
Jun 24, 2026
Merged

Fix joining of paths in bundler#5158
saecki merged 2 commits into
mainfrom
path-joining

Conversation

@saecki

@saecki saecki commented Jun 24, 2026

Copy link
Copy Markdown
Member

Bundling failed in #5126, because the normal Path::join function was used to join the entrypoint package path to the root directory. If the entrypoint starts with a root component (/ or \) the whole path will be replaced.
Introduced in 0.15 typst-syntax has a VirtualPath type that allows to realize paths relative to a root. This is also used inside of the compiler.

saecki added 2 commits June 24, 2026 14:41
Use the `typst_syntax::VirtualPath::realize` function
@saecki saecki temporarily deployed to Package Check June 24, 2026 13:44 — with GitHub Actions Inactive
@saecki saecki mentioned this pull request Jun 24, 2026
2 tasks
@saecki

saecki commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

I've run the bundler on main and from this PR to validate they produce the same output.

@saecki saecki merged commit b4043da into main Jun 24, 2026
2 checks passed
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.

1 participant