[K/N] SearchPathResolver: Do not emit warning for LenientUnresolvedLibrary

^KT-56205 Verification Pending
This commit is contained in:
Sebastian Sellmair
2023-01-26 10:06:50 +01:00
committed by Space Team
parent 48b1456290
commit 1978566fee
@@ -162,17 +162,12 @@ abstract class KotlinLibrarySearchPathResolver<L : KotlinLibrary>(
}
override fun resolve(unresolved: LenientUnresolvedLibrary, isDefaultLink: Boolean): L? {
return resolveOrNull(unresolved, isDefaultLink).also { resolvedLibrary ->
if (resolvedLibrary == null) {
logger.warning("Could not find \"${unresolved.path}\" in ${searchRoots.map { it.absolutePath }}")
}
}
return resolveOrNull(unresolved, isDefaultLink)
}
override fun resolve(unresolved: RequiredUnresolvedLibrary, isDefaultLink: Boolean): L {
return resolveOrNull(unresolved, isDefaultLink)
?: logger.fatal("Could not find \"${unresolved.path}\" in ${searchRoots.map { it.absolutePath }}")
}
override fun libraryMatch(candidate: L, unresolved: UnresolvedLibrary): Boolean = true