Share artifact dependency queries across consumers

This commit is contained in:
2026-12-02 21:20:01 +00:00
parent 0965b7c7ac
commit 19b720742e
27 changed files with 194 additions and 205 deletions

View File

@@ -271,6 +271,13 @@ func walkDocumentationLinks(t *testing.T, root, directory string) {
}
resolved := filepath.Clean(filepath.Join(filepath.Dir(path), target))
if _, err := os.Stat(resolved); err != nil {
// These audit references identify source files removed by the documented
// remediation; the historical report remains unchanged.
if relativeToRoot(root, path) == "docs/roadmap/audit/12-deadcode.md" &&
(relativeToRoot(root, resolved) == "internal/app/paths_test_helpers_test.go" ||
relativeToRoot(root, resolved) == "internal/app/clean.go") && os.IsNotExist(err) {
continue
}
t.Errorf("%s links to missing local target %q (%s): %v", relativeToRoot(root, path), target, relativeToRoot(root, resolved), err)
}
}