Merge "Filter defaults from license metadata dependencies."

This commit is contained in:
Treehugger Robot
2022-08-02 17:23:22 +00:00
committed by Gerrit Code Review

View File

@@ -67,6 +67,11 @@ func buildLicenseMetadata(ctx ModuleContext, licenseMetadataFile WritablePath) {
return
}
// Defaults add properties and dependencies that get processed on their own.
if ctx.OtherModuleDependencyTag(dep) == DefaultsDepTag {
return
}
if ctx.OtherModuleHasProvider(dep, LicenseMetadataProvider) {
info := ctx.OtherModuleProvider(dep, LicenseMetadataProvider).(*LicenseMetadataInfo)
allDepMetadataFiles = append(allDepMetadataFiles, info.LicenseMetadataPath)