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

Function localExtendsParent

pkg/compose/publish.go:573–581  ·  view source on GitHub ↗

localExtendsParent returns the path of an extends parent file that exists on disk, or "" when the service does not extend or extends a remote resource.

(service types.ServiceConfig)

Source from the content-addressed store, hash-verified

571// localExtendsParent returns the path of an extends parent file that exists on
572// disk, or "" when the service does not extend or extends a remote resource.
573func localExtendsParent(service types.ServiceConfig) string {
574 if service.Extends == nil || service.Extends.File == "" {
575 return ""
576 }
577 if _, err := os.Stat(service.Extends.File); err != nil {
578 return ""
579 }
580 return service.Extends.File
581}
582
583func buildEnvPromptMessage(services map[string]*serviceEnvFindings) string {
584 var b strings.Builder

Callers 1

collectEnvCheckFindingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected