Merge "Use namespace path instead of id in phonies." into main

This commit is contained in:
Yu Liu
2024-08-20 22:02:07 +00:00
committed by Gerrit Code Review

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 {