Merge "Remove duplicates in PathsAndMissingDepsRelativeToModuleSourceDir" into main

This commit is contained in:
Treehugger Robot 2024-04-12 23:39:04 +00:00 committed by Gerrit Code Review
commit ef0cbf11a6

View file

@ -673,7 +673,8 @@ func PathsAndMissingDepsRelativeToModuleSourceDir(input SourceInput) (Paths, []s
expandedSrcFiles = append(expandedSrcFiles, srcFiles...)
}
return expandedSrcFiles, append(missingDeps, missingExcludeDeps...)
// TODO: b/334169722 - Replace with an error instead of implicitly removing duplicates.
return FirstUniquePaths(expandedSrcFiles), append(missingDeps, missingExcludeDeps...)
}
type missingDependencyError struct {