fix returnvalue when no ignore file found
This commit is contained in:
parent
21618758eb
commit
a27087233c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue