fix returnvalue when no ignore file found

This commit is contained in:
Bence Major 2024-09-01 13:23:10 +02:00
parent 21618758eb
commit a27087233c
1 changed files with 1 additions and 1 deletions

View File

@ -798,7 +798,7 @@ func getExcludedFiles(dockerfilePath, buildcontext string) ([]string, error) {
logrus.Infof("Using ignorefile: %v", path)
contents, err := os.ReadFile(path)
if err != nil {
return nil, errors.Wrap(err, "parsing ignorefile")
return nil, nil
}
reader := bytes.NewBuffer(contents)
return dockerignore.ReadAll(reader)