Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

fix(codegen) compression usage when the paths are absolute #21

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

lucasfernog
Copy link
Member

When joining Paths, if the path is absolute, Rust replaces the original Path. In that case, the includedir behavior of compressing the target file and move to OUT_DIR mutates the original file since we end up using the file path instead of ${OUT_DIR}/${path}. This PR solves that behavior by removing the root from the source path when joining, so this behavior related to absolute paths doesn't happen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants