On Wed, 07 May 2014 21:53:28 GMT, Luís Marques wrote:

On Wed, 07 May 2014 23:21:15 +0200, Sönke Ludwig wrote:

Hm, okay, does ./app.d actually exist, or is it in source/app.d or
similar? It works for me if I create an app.d in the package root directory.

It is source/app.d. If I change the dub.json to include the source/ then it compiles without error. But dub <= 0.7.19 accepts the plain app.d. Is this an intentional change? Was the old behaviour unintentional?

The old DUB versions used to handle "mainSourceFile" separately (and if it didn't match an existing source file, it was just ignored). But now the main source file is also implicitly added as a "sourceFiles" entry. So for the old versions it just implicitly chose source/app.d as the main source file and ignored the "mainSourceFile" field altogether.