Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
2.5.0
-
None
Description
While building my project with Qbs, I encountered an issue related to the case sensitivity of the disk letter in build folder paths on Windows.
I rely on the APPVEYOR_BUILD_FOLDER environment variable, which in my case has the value c:\projects\valentina. Before building, I set up a custom build folder path and run the build with the following commands:
set VALENTINA_BUILD_FOLDER=%APPVEYOR_BUILD_FOLDER%\build qbs build -f valentina.qbs -d %VALENTINA_BUILD_FOLDER% qbs.installRoot:%VALENTINA_BUILD_FOLDER%\release\install-root\valentina
However, during the build, I encountered the following error:
ERROR: C:\projects\valentina\src\app\valentina\valentina.qbs:225:18 Refusing to create artifact 'c:\projects\valentina\build\release\install-root\valentina\svgfonts\EMS\EMSCasualHand.svg' outside of build directory 'C:\projects\valentina\build\release'.
The issue is caused specifically by the difference in case between c: and C: for the disk letter. Windows treats paths with different disk letter casing as identical, but Qbs does not, leading to this error.
Question:
Should Qbs automatically handle differences in disk letter case on Windows, or is it the user's responsibility to ensure consistent casing? If automatic handling is feasible, it could simplify the build process for users on Windows.
Expected Behavior:
Qbs should ignore differences in disk letter case on Windows, treating paths like c: and C: as identical.
Actual Behavior:
Qbs treats paths with different disk letter cases as separate, resulting in an error.