(m *snapshot.Manifest, path string)
| 87 | } |
| 88 | |
| 89 | func findRelativePathParts(m *snapshot.Manifest, path string) ([]string, error) { |
| 90 | if path == "" { |
| 91 | return nil, nil |
| 92 | } |
| 93 | |
| 94 | relPath, err := filepath.Rel(m.Source.Path, path) |
| 95 | if err != nil { |
| 96 | return nil, err //nolint:wrapcheck |
| 97 | } |
| 98 | |
| 99 | if relPath == "." { |
| 100 | return nil, nil |
| 101 | } |
| 102 | |
| 103 | return strings.Split(filepath.ToSlash(relPath), "/"), nil |
| 104 | } |
| 105 | |
| 106 | func findManifestIDs(ctx context.Context, rep repo.Repository, source string, tags map[string]string) ([]manifest.ID, string, error) { |
| 107 | if source == "" { |
no outgoing calls
no test coverage detected