Fix issue 1277: Missing dub.json causes infinite loop
For some reason, having a 'source/app.d' was recognized as being in a package.
This would load an empty package with no manifest and send the dependency resolver
in an infinite loop.
Remove the special detection of 'source/app.d' and rely only on manifest.
Another option would have been to detect 'source/app.d' as a single-file package,
but that is a bit too much magic (the user can just 'dub run --single source/app.d').
1 parent 14cc8e5 commit 4a2e38be5e57ed93e8a1484351d7cfc4f30c6baa
@Geod24 Geod24 authored on 2 Jan 2020
Mathias LANG committed on 3 Jan 2020
Showing 4 changed files
View
source/dub/commandline.d
View
test/issue1277.sh 0 → 100755
View
test/issue1277/.no_build 0 → 100644
View
test/issue1277/source/app.d 0 → 100644