diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go index d8c7898ac..1f6723535 100644 --- a/pkg/cache/cache.go +++ b/pkg/cache/cache.go @@ -113,7 +113,7 @@ func Destination(opts *config.KanikoOptions, cacheKey string) (string, error) { return fmt.Sprintf("%s:%s", cache, cacheKey), nil } -// LocalSource retieves a source image from a local cache given cacheKey +// LocalSource retrieves a source image from a local cache given cacheKey func LocalSource(opts *config.CacheOptions, cacheKey string) (v1.Image, error) { cache := opts.CacheDir if cache == "" { diff --git a/pkg/executor/build.go b/pkg/executor/build.go index 563a8f379..d1c17cf1d 100644 --- a/pkg/executor/build.go +++ b/pkg/executor/build.go @@ -494,7 +494,7 @@ func DoBuild(opts *config.KanikoOptions) (v1.Image, error) { digestToCacheKey := make(map[string]string) stageIdxToDigest := make(map[string]string) - // Parse dockerfile and unpack base image to root + // Parse dockerfile stages, err := dockerfile.Stages(opts) if err != nil { return nil, err