issue 1025: a context naming the module's own repository is its own build source (ADR 0420 §4)

This commit is contained in:
2026-10-17 15:41:35 +02:00
parent b8c810a349
commit 21414307c8
3 changed files with 92 additions and 2 deletions
+2
View File
@@ -1267,6 +1267,8 @@ func graphOfFacts(f snapshot.Facts) ([]inventory.Entry, map[string][]inventory.R
read[mod.Name] = append(read[mod.Name], inventory.ReadRepository{Own: true, Paths: s.Paths})
}
}
// A context naming the module's own repository is its own build source (novox/hq ADR 0420 §4).
read[mod.Name] = inventory.OwnRepositoryAsOwn(read[mod.Name], mod.Repository)
}
var edges []inventory.Edge
for _, e := range f.Edges {