summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-04-12 23:39:04 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-04-12 23:39:04 +0000
commitef0cbf11a67a484f591915626cf53cae3b4bef51 (patch)
treea863fb89b1866e9ca4ab3c38ee842cab0cb1af1c
parent720146b2f208cd6a62c63556e7fd7208b17fe191 (diff)
parent0e3a5352e1f3a81eb19c54090ecd18424ad074dc (diff)
Merge "Remove duplicates in PathsAndMissingDepsRelativeToModuleSourceDir" into main
-rw-r--r--android/paths.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/paths.go b/android/paths.go
index a40f48274..2b33f67ce 100644
--- a/android/paths.go
+++ b/android/paths.go
@@ -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 {