(r io.Reader)
| 154 | } |
| 155 | |
| 156 | func readDockerignorePatterns(r io.Reader) ([]string, error) { |
| 157 | patterns, err := ignorefile.ReadAll(r) |
| 158 | if err != nil { |
| 159 | return nil, fmt.Errorf("error reading .dockerignore: %w", err) |
| 160 | } |
| 161 | return patterns, nil |
| 162 | } |
| 163 | |
| 164 | func DockerIgnoreTesterFromContents(repoRoot string, contents string) (*dockerPathMatcher, error) { |
| 165 | patterns, err := ignorefile.ReadAll(strings.NewReader(contents)) |
no outgoing calls
no test coverage detected
searching dependent graphs…