Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error in dub.json on ~0.5.0 branch #32
When I try to build any app using Dgame 0.5.0 I get this error message:
Looking at the dub.json, the
added a commit
Mar 8, 2015
OK, the dub.json bug is now fixed but as a library target it fails because it picks up main() in test/main.d and I get this error.
The fix is trivial and requires changing the "excludedSourceFiles" field in the "lib" target to:
Whenever you around to this is cool, 0.5.0 is WIP after all.
Ah, sorry my bad. When I look now I see that I had Dgame building as a sourceLibrary.
WIth the last commit and Dgame targetType as sourceLibrary I can compile and run the "tut.d" as a completely separate dub project.
Build with Dgame as a "library" target I get the import path error:
Sorry for the confusion. I'll also look into dub and how to get Dgame prefix to import paths for a library target. If I stumble across anything I'll let you know .
The whole test folder will disappear, so it's only a temporal fix. ;) Don't worry.
It's because Dgame is not built like DUB wants to. Maybe I should change it to 'source/Dgame'. DUB will automatically accept source as import path and the error should disappear.