diff --git a/docs/roadmap/remediation.md b/docs/roadmap/remediation.md index 5dc1ece..9105e77 100644 --- a/docs/roadmap/remediation.md +++ b/docs/roadmap/remediation.md @@ -215,6 +215,11 @@ continue to load, project, clone and classify correctly. ## 8. P2 — Fix the baseline test's canonical-path assumption on macOS +Status: complete. The source test compares canonical path identity and separately +checks the declared label. Full default and race suites pass on macOS/arm64 using +both the default TMPDIR and an intentionally symlinked TMPDIR. Vet, build and +whitespace checks also pass; no production canonicalization behavior changed. + Evidence: [source_test.go](../../source_test.go), `TestFileSourcesReopenAndClassifyFailures`, compares `SourceInfo.Path` directly with the path under `t.TempDir()`. Successful sources intentionally report a diff --git a/source_test.go b/source_test.go index 84e93e9..a608806 100644 --- a/source_test.go +++ b/source_test.go @@ -52,7 +52,7 @@ func TestFileSourcesReopenAndClassifyFailures(t *testing.T) { } source := File(path) first, diagnostics := readSource(source, "source-1", defaultSourceLimits()) - if len(diagnostics) != 0 || string(first.data) != "value: first\n" || first.info.Path != path { + if len(diagnostics) != 0 || string(first.data) != "value: first\n" || first.info.Path != canonicalTestPath(t, path) || first.info.Label != path { t.Fatalf("first read = %#v, %#v", first, diagnostics) } if err := os.WriteFile(path, []byte("value: second\n"), 0o600); err != nil {