Use namespace path instead of id in phonies.

Otherwise the phones' names depend on the sorting order of all the
namespaces, which add unnecessary dependencies.

Bug: 358425833
Test: CI
Change-Id: Ic88a329ff320e508ece8e3b20c7497a28a619276
This commit is contained in:
Yu Liu
2024-08-20 19:31:15 +00:00
parent ee5b92fd6c
commit 460c0fa8b4

View File

@@ -1647,9 +1647,10 @@ func (m *ModuleBase) generateModuleTarget(ctx *moduleContext) {
var deps Paths
namespacePrefix := ctx.Namespace().id
if namespacePrefix != "" {
namespacePrefix = namespacePrefix + "-"
var namespacePrefix string
nameSpace := ctx.Namespace().Path
if nameSpace != "." {
namespacePrefix = strings.ReplaceAll(nameSpace, "/", ".") + "-"
}
if len(allInstalledFiles) > 0 {