Move test-runner temp directory into project

- Change temp directory from /tmp/test-runner-claude to .test-runner-temp
- Keeps temporary files within project bounds for Claude Code access
- Add .test-runner-temp to .gitignore to exclude from version control
- Fixes Claude AI validation permission issue
This commit is contained in:
Shang Chieh Tseng
2025-10-30 12:25:25 +08:00
parent 9b487aa5f5
commit c8b7015a2c
2 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@@ -14,3 +14,4 @@ __debug_bin*
llama/build
llama/vendor
/ollama
.test-runner-temp

View File

@@ -32,8 +32,13 @@ func NewValidator(config Validation, logMonitor *LogMonitor, verbose bool) *Vali
}
}
// Create temp directory for Claude analysis files
tempDir := filepath.Join(os.TempDir(), "test-runner-claude")
// Create temp directory for Claude analysis files within the project
// Use current working directory to stay within project bounds
cwd, err := os.Getwd()
if err != nil {
cwd = "."
}
tempDir := filepath.Join(cwd, ".test-runner-temp")
os.MkdirAll(tempDir, 0755)
return &Validator{