Share artifact dependency queries across consumers
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user