MCPcopy
hub / github.com/docker/compose / defaultResolveAppID

Function defaultResolveAppID

cmd/compose/hooks.go:113–119  ·  view source on GitHub ↗
(ctx context.Context, flags map[string]string)

Source from the content-addressed store, hash-verified

111}
112
113func defaultResolveAppID(ctx context.Context, flags map[string]string) string {
114 workDir, err := os.Getwd()
115 if err != nil {
116 return ""
117 }
118 return resolveAppIDIn(ctx, flags, workDir)
119}
120
121// Split from defaultResolveAppID so tests can pass a t.TempDir() instead
122// of mutating process state via t.Chdir.

Callers

nothing calls this directly

Calls 1

resolveAppIDInFunction · 0.85

Tested by

no test coverage detected