WIP: rebase for 2026-05-18 #7
@@ -24,6 +24,13 @@ func TestUsedConsistently(t *testing.T) {
|
|||||||
t.Skipf("skipping test since .git doesn't exist: %v", err)
|
t.Skipf("skipping test since .git doesn't exist: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Open .git/index so Go's test cache tracks it as an input.
|
||||||
|
// The index file changes on git reset, checkout, pull, etc.,
|
||||||
|
// so the cache is properly invalidated when moving between commits.
|
||||||
|
if f, err := os.Open(filepath.Join(rootDir, ".git", "index")); err == nil {
|
||||||
|
f.Close()
|
||||||
|
}
|
||||||
|
|
||||||
cmd := exec.Command("git", "grep", "-l", "-F", "http.Method")
|
cmd := exec.Command("git", "grep", "-l", "-F", "http.Method")
|
||||||
cmd.Dir = rootDir
|
cmd.Dir = rootDir
|
||||||
matches, _ := cmd.Output()
|
matches, _ := cmd.Output()
|
||||||
|
|||||||
Reference in New Issue
Block a user