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)
|
logrus.Infof("Using ignorefile: %v", path)
|
||||||
contents, err := os.ReadFile(path)
|
contents, err := os.ReadFile(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "parsing ignorefile")
|
return nil, nil
|
||||||
}
|
}
|
||||||
reader := bytes.NewBuffer(contents)
|
reader := bytes.NewBuffer(contents)
|
||||||
return dockerignore.ReadAll(reader)
|
return dockerignore.ReadAll(reader)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue