-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dub test
overrides binary created by dub build
#840
Comments
By default, DUB picks the first library configuration and generates a test executable configuration from that. The executable is then named |
When I reported this, the dub.json file I could use to reproduce this was: {
"name": "foobar",
"sourcePaths": ["src"],
"buildTypes": {
"debug": {
"buildOptions": ["debugMode", "debugInfo", "optimize", "inline"]
},
"debug-nooptimize": {
"buildOptions": ["debugMode", "debugInfo"]
}
},
"targetPath": "build",
"targetType": "executable",
"buildRequirements": ["disallowDeprecations"]
} |
Okay, it's the |
I've opened a PR: #1029 |
Fixed by 9e73284 |
dub version: 0.9.24
When packaging software, it's quite common to run the build-time tests after the software was built.
Doing that with dub results in
dub build
anddub test
to be executed in order.Unfortunately,
dub test
seems to override the actual binary we install on the system later with the test-binary, which is pretty annoying.Would it be possible to give the test-binary a different name, to make it not override the existing, previously built, actual binary?
Something like
Thanks for looking into this!
The text was updated successfully, but these errors were encountered: