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. |
---|
|
.github/workflows/main.yml |
---|
changelog/fix-2051.dd 0 → 100644 |
---|
source/dub/dub.d |
---|
test/.gitignore |
---|
test/issue_2051_running_unittests_from_dub_single_file_packages_fails.d 0 → 100644 |
---|