Fix #2051 "Running unittests from dub single file packages fails" (#2052)
Performing test command dub imports every source file as module to build the project excluding the main source file. But this excluding may fail and in this case dub try to import the main source file as module. Single file package building fails because the main source file does not belong to any import path. Now both the current file and the main source file paths are compared in relative form to prevent importing the main source file as module.
1 parent dff7cae commit 68190dffeb56b2c7379c9d4570e2accc2928a6cf
@drug007 drug007 authored on 3 Dec 2020
GitHub committed on 3 Dec 2020
Showing 5 changed files
View
.github/workflows/main.yml
View
changelog/fix-2051.dd 0 → 100644
View
source/dub/dub.d
View
test/.gitignore
View
test/issue_2051_running_unittests_from_dub_single_file_packages_fails.d 0 → 100644