From 2599c0c69b900d7703980a2d4498fbbe235a4b7a Mon Sep 17 00:00:00 2001 From: Nao YONASHIRO Date: Fri, 17 May 2019 03:41:10 +0900 Subject: [PATCH 1/2] docs: fix wrong document --- pkg/executor/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From cbba7cec3f48999d0262daecc7c8806865fce86c Mon Sep 17 00:00:00 2001 From: Nao YONASHIRO Date: Fri, 17 May 2019 04:13:56 +0900 Subject: [PATCH 2/2] chore: fix typo --- pkg/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == "" {