zerodaycode / Zork

Project manager and builder automation tool for modern C++ projects
MIT License
151 stars 10 forks source link

Absolute PATHS on config file got concatenated to the project root #128

Closed TheRustifyer closed 3 months ago

TheRustifyer commented 3 months ago

Bug Report

Description

Absolute PATHS on config file got concatenated to the project root, so, our users are unable to provide absolute PATHS to any kind of translation unit

Since normally you will assume that the translation units of the project will be under the code root, everything's fine, but there can be uses cases where the user's wants to provide absolute paths for N files.

Even tho, concatenating the code root to any file path if is already an absolute PATH seems to me like a bug, and therefore, we should check if the current path is absolute and therefore, don't concatenate the project root and code root