Print 'cached' if dependency is found in cache
@@ -2131,6 +2131,8 @@ to directly access options of other subprojects.''')
# Check if we've already searched for and found this dep
if identifier in self.coredata.deps:
cached_dep = self.coredata.deps[identifier]
+ mlog.log('Cached dependency', mlog.bold(name),
+ 'found:', mlog.green('YES'))
else:
# Check if exactly the same dep with different version requirements
# was found already.
@@ -2183,6 +2185,9 @@ to directly access options of other subprojects.''')
m = 'Version {} of {} already loaded, requested incompatible version {}'
raise DependencyException(m.format(found, dirname, wanted))
elif valid_version:
+ mlog.log('Found a', mlog.green('(cached)'), 'subproject',
+ mlog.bold(os.path.join(self.subproject_dir, dirname)), 'for',
+ mlog.bold(name))
subproject = self.subprojects[dirname]
try:
# Never add fallback deps to self.coredata.deps
