-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Should detect when a sub package is erroneously used as a root package #622
Comments
I tried to reproduce this in 90aa0f1, but everything there works. Is there anything else in your project that could influence this? Any chance of extracting all of the involved package description files for a reproduction case? The output of BTW, you should just remove all |
Okay! I found the problem! It was expecting it to be called "engine", because of an entry in dub's local-packages file that was either old or mis-entered. Removing the local-packages file made things work fine! Sorry to trouble you. |
Oh okay, I see. Sounds like something that DUB should detect on its own, though. I'll change the title and leave this open. |
Original title: Regression: Dub 0.9.23 and 0.9.24-b2 cannot find subdirectory-based-subpackage dependency for in-file subpackage.
I've got a rather complex project with a subPackage structure like this:
]
(The reason for the mixed subpackage structure is that there are several completely independent source files in TestApps/; they're interactive programs for testing things that unit tests really can't)
ice:engine is defined in the subfolder Engine's dub.json file. Dub 0.9.22 was able to resolve this fine, but both 0.9.23 and the latest beta of 0.9.24 error out with the error "Unknown dependency: ice:engine" when building the package.
The text was updated successfully, but these errors were encountered: