mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-22 10:25:04 +02:00
fix: use refrence should after err handles (#2128)
* fix: use refrence should after err handles * Update pkg/executor/build.go Co-authored-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
co-authored by
Jason Hall
parent
1395e4682f
commit
9f57952214
@@ -634,11 +634,10 @@ func DoBuild(opts *config.KanikoOptions) (v1.Image, error) {
|
||||
logrus.Infof("Building stage '%v' [idx: '%v', base-idx: '%v']",
|
||||
stage.BaseName, stage.Index, stage.BaseImageIndex)
|
||||
|
||||
args = sb.args
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
args = sb.args
|
||||
if err := sb.build(); err != nil {
|
||||
return nil, errors.Wrap(err, "error building stage")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user