MCPcopy Create free account
hub / github.com/compose-spec/compose-go / Load

Method Load

loader/loader_test.go:2411–2418  ·  view source on GitHub ↗
(_ context.Context, s string)

Source from the content-addressed store, hash-verified

2409}
2410
2411func (c customLoader) Load(_ context.Context, s string) (string, error) {
2412 path := c.path(s)
2413 _, err := os.Stat(path)
2414 if err != nil {
2415 return "", err
2416 }
2417 return filepath.Abs(path)
2418}
2419
2420func (c customLoader) Dir(s string) string {
2421 return filepath.Dir(c.path(s))

Callers

nothing calls this directly

Calls 1

pathMethod · 0.95

Tested by

no test coverage detected