diff options
author | 2023-08-16 20:45:39 +0000 | |
---|---|---|
committer | 2023-08-16 21:30:02 +0000 | |
commit | 5e04d4884a67b28ca8a2e838e45aa7326579f960 (patch) | |
tree | 64895446093b552e33bb00e3fc2930b429b985df /rust/rust.go | |
parent | f768e6e27ea7d9833ae324d58621b874a7144170 (diff) |
Use Label (string) instead of Label (struct) to dedupe
Using Label struct as the map key causes issues because it contains
OriginalModuleName. The same module will have a different value for this
property when called from inside a soong namespace vs from outside.
If there are dups, we can just choose the first one. OriginalModuleName
is often used with ModuleFromName, and that function panics if there are
modules with the same name in two separate soong namespaces
Test: go test ./bp2build ./bazel
Change-Id: I2ee33efab03016a72f1eea99cb958b6198baeca2
Diffstat (limited to 'rust/rust.go')
0 files changed, 0 insertions, 0 deletions