Skip to content

Use deterministic relative paths#2495

Merged
plajjan merged 1 commit into
mainfrom
build-rel-abs-path
Oct 25, 2025
Merged

Use deterministic relative paths#2495
plajjan merged 1 commit into
mainfrom
build-rel-abs-path

Conversation

@plajjan

@plajjan plajjan commented Oct 25, 2025

Copy link
Copy Markdown
Contributor

It seems we end up in some strange scenarios where through multiple dependencies, Zig sees the same project (build.zig) through different paths and think they are different for some reason.

By computing the path from where we are up to the root / and use an absolute path from there, we get deterministic paths yet they are technically still relative, which is what Zig wants.

It seems we end up in some strange scenarios where through multiple
dependencies, Zig sees the same project (build.zig) through different
paths and think they are different for some reason.

By computing the path from where we are up to the root / and use an
absolute path from there, we get deterministic paths yet they are
technically still relative, which is what Zig wants.
@plajjan plajjan merged commit 52502e7 into main Oct 25, 2025
35 checks passed
@plajjan plajjan deleted the build-rel-abs-path branch October 25, 2025 14:22
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