-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
add the build ID in TargetDescription #2644
Conversation
✅ PR OK, no changes in deprecations or warnings Total deprecations: 14 Total warnings: 0 Build statistics: statistics (-before, +after)
executable size=5280256 bin/dub
-rough build time=77s
+rough build time=76s Full build output
|
Instead of
Even with the build Id available, if this structure changes, Meson will be lost again. |
A full path would be better, as Meson shouldn't depend on implementation details of Dub. As @Geod24 mentioned, |
There seem to be a bug in "versions": [
"EventcoreEpollDriver",
"Have_taggedalgebraic"
], However when I run It means that This come down to this piece of code, which looks wrong to me. I don't understand why dependencies need versions from their parents. // 1. downwards inherits versions, debugVersions, and inheritable build settings
static void configureDependencies(const scope ref TargetInfo ti, TargetInfo[string] targets, size_t level = 0)
{
// do not use `visited` here as dependencies must inherit
// configurations from *all* of their parents
logDebug("%sConfigure dependencies of %s, deps:%(%s, %)", ' '.repeat(2 * level), ti.pack.name, ti.dependencies);
foreach (depname; ti.dependencies)
{
auto pti = &targets[depname];
mergeFromDependent(ti.buildSettings, pti.buildSettings);
configureDependencies(*pti, targets, level + 1);
}
}
configureDependencies(*roottarget, targets); |
actually I think having both would be beneficial, as dub describe will only tell you about a single configuration, but you might want to know what everything in the folder is. |
When I completely remove the "downwards inherits versions etc." section from Dub's code, I still make valid builds. Right now |
It is used quite heavily, see bindbc projects that use it to specify the version of the library it needs to load. Very useful. |
Ah yes, quite obvious. |
d226782
to
5c3268f
Compare
Allow 3rd party programs (e.g. Meson) to locate artifacts in the cache
5c3268f
to
bbf33c0
Compare
Hi, can this be merged before next Dub release? |
Allow 3rd party programs (e.g. Meson) to locate artifacts in the cache.
Following @Geod24 comment in #2642.
@WebFreak001 @Geod24 This would be enough for Meson to locate Dub's artifacts.
If you prefer to use this proposal, feel free to revert #2642.