(override string)
| 81 | } |
| 82 | |
| 83 | func resolveDriverPath(override string) (string, error) { |
| 84 | if trimmed := strings.TrimSpace(override); trimmed != "" { |
| 85 | return resolveExplicitDriverPath(trimmed) |
| 86 | } |
| 87 | if trimmed := strings.TrimSpace(os.Getenv(driverBinaryEnvVar)); trimmed != "" { |
| 88 | return resolveExplicitDriverPath(trimmed) |
| 89 | } |
| 90 | return DefaultDriverPath() |
| 91 | } |
| 92 | |
| 93 | func resolveExplicitDriverPath(path string) (string, error) { |
| 94 | resolved, err := aghconfig.ResolvePath(path) |