mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-17 21:24:31 +02:00
fix: better error if not exists
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
@@ -263,6 +263,9 @@ func resolveSourceContext() error {
|
||||
}
|
||||
if ctxSubPath != "" {
|
||||
opts.SrcContext = filepath.Join(opts.SrcContext, ctxSubPath)
|
||||
if _, err := os.Stat(opts.SrcContext); os.IsNotExist(err) {
|
||||
return err
|
||||
}
|
||||
}
|
||||
logrus.Debugf("Build context located at %s", opts.SrcContext)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user