diff --git a/source/dub/generators/build.d b/source/dub/generators/build.d index 7a880f5..57de118 100644 --- a/source/dub/generators/build.d +++ b/source/dub/generators/build.d @@ -333,6 +333,10 @@ allfiles ~= (main_pack.path ~ SelectedVersions.defaultFile).toNativeString(); foreach (file; allfiles.data) { + if (!existsFile(file)) { + logDiagnostic("File %s doesn't exists, triggering rebuild.", file); + return false; + } auto ftime = getFileInfo(file).timeModified; if (ftime > Clock.currTime) logWarn("File '%s' was modified in the future. Please re-save.", file);