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

Function greatestExistingAncestors

pkg/watch/watcher_naive.go:315–325  ·  view source on GitHub ↗
(paths []string)

Source from the content-addressed store, hash-verified

313var _ Notify = &naiveNotify{}
314
315func greatestExistingAncestors(paths []string) ([]string, error) {
316 result := []string{}
317 for _, p := range paths {
318 newP, err := greatestExistingAncestor(p)
319 if err != nil {
320 return nil, fmt.Errorf("finding ancestor of %s: %w", p, err)
321 }
322 result = append(result, newP)
323 }
324 return result, nil
325}

Callers 1

StartMethod · 0.85

Calls 1

greatestExistingAncestorFunction · 0.85

Tested by

no test coverage detected