← All tasks
cppdrogonframework/drogon #2287Not a task: not reproduced

Drogon writes to source directory during build

envgap__drogonframework__drogon-2287

01 / FAILURE SIGNATURE

As reported upstream

3. See an error about being unable to create `version.h`
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
1fb67d68be0d4426359e1c385cd6c2e67e7fd2bd
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

drogonframework/drogon #2287 · read the original issue
**Describe the bug**
It's not good practice to write to the source directory during build, yet drogon creates one file in the source directory during build.

**To Reproduce**
Steps to reproduce the behavior:
1. Notice the absence of `lib/inc/drogon/version.h`
2. Build
3. Notice the presence of `lib/inc/drogon/version.h`

Optionally:
1. Make the source tree read-only
2. Build to an out-of-tree destination
3. See an error about being unable to create `version.h`

**Expected behavior**
Drogon should be buildable from a read-only source tree.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]