MCPcopy Index your code
hub / github.com/jetify-com/devbox / ensureDevboxUtilityConfig

Function ensureDevboxUtilityConfig

internal/devbox/util.go:64–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func ensureDevboxUtilityConfig() (string, error) {
65 if utilProjectConfigPath != "" {
66 return utilProjectConfigPath, nil
67 }
68
69 path, err := utilityDataPath()
70 if err != nil {
71 return "", err
72 }
73
74 err = EnsureConfig(path)
75 if err != nil {
76 return "", err
77 }
78
79 // Avoids unnecessarily initializing the config again by caching the path
80 utilProjectConfigPath = path
81
82 return path, nil
83}
84
85func utilityLookPath(binName string) (string, error) {
86 binPath, err := utilityBinPath()

Callers 1

initDevboxUtilityProjectFunction · 0.85

Calls 2

utilityDataPathFunction · 0.85
EnsureConfigFunction · 0.85

Tested by

no test coverage detected