-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Building using --rdmd flag ignores mainSourceFile build setting #255
Comments
Seems to work correctly on DUB 0.9.21 (with #263 out of the way). |
I still can't get it to build my project, maybe you could take a look? Download the project from here: https://github.com/nomad-software/tcltk building works with: dub but the following fails: dub --rdmd
x11: ["x11"]
tcltk: ["tcltk", "x11"]
Building configuration tcltk-import, build type debug
Running rdmd...
Error: cannot read file ../../.dub/packages/x11-master/source/app.d
Failed: 'dmd' '-debug' '-g' '-w' '-version=Have_x11' '-I../../.dub/packages/x11-master/source' '-lib' '-v' '-o-' '../../.dub/packages/x11-master/source/app.d' '-I../../.dub/packages/x11-master/source'
Error executing command run: Build command failed with exit code 1 It looks like it expects all dependencies to have an existing |
I see, there are two issues:
I'll fix 1 now. |
Since RDMD already builds everything at once, this would be useless work and many dependencies don't have the required mainSourceFile, so that it would make the compilation fail.
I've tried building my repo at https://github.com/nomad-software/tkd using |
Works for me with the latest GIT master of DUB, also without |
Hmmm.. i've just tried with git master and get this:
|
Hm OK, my test was on Windows. Will retry on Linux. |
This is my result on Linux:
with Maybe there is something wrong with the cached packages and a |
Thanks, i'll take another look tomorrow. |
I removed all the cached packages and things seem to build fine now. :) I just get the following warning, i'm not sure what this means:
What exactly does this mean? |
It's a warning message to start the migration to a purely version based package system. See also this thread for the rationale. There is no immediate need for action, but the idea is that at some point all packages will have version tags and reference each other using version based dependencies. There are a few facilities in place to make this as painless as possible when working with git working copies (local overrides, treating checked out branches as the latest tagged version which they originate of, allowing branch based dependencies in dub.selections.json). I'll write a proper text with explanations and instructions for the next DUB release. |
Ah right, good! I've updated my packages to use versions. Much more sane idea! :) |
Here is my
package.json
file:If i build using the following command, all works as expected:
but if i build using the following command, i get an error:
Why should it look for
source/app.d
when i've specifiedsource/example.d
as my mainSourceFile?The text was updated successfully, but these errors were encountered: