Skip to content

Conversation

@tsx8
Copy link
Contributor

@tsx8 tsx8 commented Dec 21, 2025

Fixes #906

Check if the include path is absolute before joining it with the entry directory.

Fixes #906

When using absolute paths in the include directive, the path was
incorrectly joined with the entry directory, resulting in paths like
'/etc/dae/etc/dae/sub.dae' instead of '/etc/dae/sub.dae'.

This commit checks if the include path is absolute before joining it
with the entry directory, allowing absolute paths to work correctly.
@tsx8 tsx8 requested a review from a team as a code owner December 21, 2025 11:55
@dae-prow dae-prow bot assigned tsx8 Dec 21, 2025
@MarksonHon
Copy link
Contributor

MarksonHon commented Jan 28, 2026

Please add an example of absolute path in example.dae, and you should write some notes to make the difference of absolute path and relative path clearly:

https://github.com/daeuniverse/dae/blob/main/example.dae#L136

@tsx8 tsx8 requested a review from a team as a code owner January 29, 2026 03:15
@tsx8
Copy link
Contributor Author

tsx8 commented Jan 29, 2026

Please add an example of absolute path in example.dae, and you should write some notes to make the difference of absolute path and relative path clearly:

https://github.com/daeuniverse/dae/blob/main/example.dae#L136

As you wish, I've added examples for absolute path.

Just to clarify, this PR only fixes absolute paths in the include { ... } directive (config merger). It doesn’t change the subscription file://... handling.

@MarksonHon MarksonHon added documentation Improvements or additions to documentation tested and removed not-yet-tested labels Jan 30, 2026
Copy link
Contributor

@dae-prow dae-prow bot left a comment

Choose a reason for hiding this comment

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

🧪 Since the PR has been fully tested, please consider merging it.

@MarksonHon MarksonHon merged commit 6e81381 into daeuniverse:main Jan 30, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation fix tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report] include directive silently fails when using absolute paths

2 participants