mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-09 23:37:06 +00:00
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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -14,3 +14,4 @@ __debug_bin*
|
||||
llama/build
|
||||
llama/vendor
|
||||
/ollama
|
||||
.test-runner-temp
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user