MCPcopy Create free account
hub / github.com/compozy/agh / resolveDriverPath

Function resolveDriverPath

internal/testutil/acpmock/driver_binary.go:83–91  ·  view source on GitHub ↗
(override string)

Source from the content-addressed store, hash-verified

81}
82
83func 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
93func resolveExplicitDriverPath(path string) (string, error) {
94 resolved, err := aghconfig.ResolvePath(path)

Calls 2

DefaultDriverPathFunction · 0.85