mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 07:46:59 +00:00
Fix test-runner variable name conflict
- Rename validateConfig flag variable to validateConfigPath - Resolves compilation error: validateConfig was both a *string variable and function name - Function call now uses correct variable name
This commit is contained in:
@@ -33,7 +33,7 @@ func main() {
|
||||
runKeepModels := runCmd.Bool("keep-models", false, "Don't delete models after test")
|
||||
|
||||
// Validate command flags
|
||||
validateConfig := validateCmd.String("config", defaultConfigPath, "Path to test configuration file")
|
||||
validateConfigPath := validateCmd.String("config", defaultConfigPath, "Path to test configuration file")
|
||||
|
||||
// List command flags
|
||||
listConfig := listCmd.String("config", defaultConfigPath, "Path to test configuration file")
|
||||
@@ -50,7 +50,7 @@ func main() {
|
||||
os.Exit(runTests(*runConfig, *runProfile, *runOllamaBin, *runOutput, *runVerbose, *runKeepModels))
|
||||
case "validate":
|
||||
validateCmd.Parse(os.Args[2:])
|
||||
os.Exit(validateConfig(*validateConfig))
|
||||
os.Exit(validateConfig(*validateConfigPath))
|
||||
case "list":
|
||||
listCmd.Parse(os.Args[2:])
|
||||
os.Exit(listProfiles(*listConfig))
|
||||
|
||||
Reference in New Issue
Block a user