Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a warning / workaround for issue 1474 #1848

Merged
merged 2 commits into from
Jan 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion examples/generated-sources/dub.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "generated-sources",
"description": "Example of using pre generate commands to generate source code.",
"sourceFiles": [ "source/test.d" ],
"preGenerateCommands": [
"echo int fun() { return 42; } > source/test.d"
"echo 'Currently, a workaround is necessary to support source-code generate through pre*Commands'",
"echo 'Generated source files need to be added to sourceFiles, otherwise they wont be picked up on first run'",
"echo 'See dlang/dub issue 1474 for more details / discussions.'",
"echo 'int fun() { return 42; }' > source/test.d"
]
}