commit | 8ac75f94c18b2ebeecc28dd26e4e222f40cfe6f0 | [log] [tgz] |
---|---|---|
author | jdhamlik <jdhamlik@google.com> | Tue Aug 14 13:37:34 2018 -0700 |
committer | Copybara-Service <copybara-piper@google.com> | Tue Aug 14 13:37:50 2018 -0700 |
tree | 54e1894538c351e91c09b93ab9da17fd22cfe610 | |
parent | c5540c873515e9eb9ea6e7be1a036fbb9d48c451 [diff] |
Fix label comparison PiperOrigin-RevId: 208703314
diff --git a/ts_auto_deps/analyze/query.go b/ts_auto_deps/analyze/query.go index 98a2b3a..f62dc91 100644 --- a/ts_auto_deps/analyze/query.go +++ b/ts_auto_deps/analyze/query.go
@@ -371,7 +371,7 @@ } for _, dep := range target.deps() { - if dep == imp.knownTarget { + if edit.LabelsEqual(dep, imp.knownTarget, "") { usedDeps[dep] = true report.NecessaryDependency = append(report.NecessaryDependency, imp.knownTarget) continue handlingImports