From 44a97ae53fb0924ed6a36b6e251fa2ede1e008d0 Mon Sep 17 00:00:00 2001 From: Cyrille Hemidy Date: Tue, 17 Apr 2018 10:52:35 +0200 Subject: [PATCH 1/6] Update run.go fix comment --- pkg/commands/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/run.go b/pkg/commands/run.go index f273d3d63..699b23dfe 100644 --- a/pkg/commands/run.go +++ b/pkg/commands/run.go @@ -80,7 +80,7 @@ func (r *RunCommand) FilesToSnapshot() []string { return nil } -// Author returns some information about the command for the image config +// CreatedBy returns some information about the command for the image config func (r *RunCommand) CreatedBy() string { cmdLine := strings.Join(r.cmd.CmdLine, " ") if r.cmd.PrependShell { From 84bab8fde201373ca6816d480ff35deeb961676e Mon Sep 17 00:00:00 2001 From: Cyrille Hemidy Date: Tue, 17 Apr 2018 10:53:34 +0200 Subject: [PATCH 2/6] Update command_util.go fix comment --- pkg/util/command_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/command_util.go b/pkg/util/command_util.go index 33fc510a7..e74745796 100644 --- a/pkg/util/command_util.go +++ b/pkg/util/command_util.go @@ -29,7 +29,7 @@ import ( "strings" ) -// ResolveEnvironmentReplacement resolves a list of values by calling resolveEnvironmentReplacement +// ResolveEnvironmentReplacementList resolves a list of values by calling resolveEnvironmentReplacement func ResolveEnvironmentReplacementList(values, envs []string, isFilepath bool) ([]string, error) { var resolvedValues []string for _, value := range values { From a18c8c01e1e61f4ff3702f342ef11cbd1c4eea11 Mon Sep 17 00:00:00 2001 From: Cyrille Hemidy Date: Tue, 17 Apr 2018 10:54:11 +0200 Subject: [PATCH 3/6] Update util.go fix comment --- pkg/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/util.go b/pkg/util/util.go index 2e4a08851..f81b19cd5 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -62,7 +62,7 @@ func Hasher() func(string) (string, error) { return hasher } -// Hasher returns a hash function, which only looks at mtime to determine if a file has changed +// MtimeHasher returns a hash function, which only looks at mtime to determine if a file has changed func MtimeHasher() func(string) (string, error) { hasher := func(p string) (string, error) { h := md5.New() From 3796a1026dedf4871ddc34a46ba5df9dda8415f4 Mon Sep 17 00:00:00 2001 From: Cyrille Hemidy Date: Tue, 17 Apr 2018 10:55:55 +0200 Subject: [PATCH 4/6] Update image.go fix comment --- pkg/image/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/image/image.go b/pkg/image/image.go index 68b81c878..73a4bf7c0 100644 --- a/pkg/image/image.go +++ b/pkg/image/image.go @@ -34,7 +34,7 @@ import ( // sourceImage is the image that will be modified by the executor -// InitializeSourceImage initializes the source image with the base image +// NewSourceImage initializes the source image with the base image func NewSourceImage(srcImg string) (*img.MutableSource, error) { if srcImg == constants.NoBaseImage { return img.NewMutableSource(nil) From 3cc63ee941afe9cc96cbc0fd2737b0be7f0cda95 Mon Sep 17 00:00:00 2001 From: Cyrille Hemidy Date: Tue, 17 Apr 2018 10:56:37 +0200 Subject: [PATCH 5/6] Update tar_util.go fix comment --- pkg/util/tar_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/tar_util.go b/pkg/util/tar_util.go index c153bb379..32df63261 100644 --- a/pkg/util/tar_util.go +++ b/pkg/util/tar_util.go @@ -94,7 +94,7 @@ func checkHardlink(p string, i os.FileInfo) (bool, string) { } // UnpackLocalTarArchive unpacks the tar archive at path to the directory dest -// Returns true if the path was acutally unpacked +// Returns true if the path was actually unpacked func UnpackLocalTarArchive(path, dest string) error { // First, we need to check if the path is a local tar archive if compressed, compressionLevel := fileIsCompressedTar(path); compressed { From 6e5ed87633f02093f7058b09f4ac650426d04632 Mon Sep 17 00:00:00 2001 From: Cyrille Hemidy Date: Tue, 17 Apr 2018 10:57:03 +0200 Subject: [PATCH 6/6] Update add.go fix comment --- pkg/commands/add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/add.go b/pkg/commands/add.go index 7338e773c..1f417da48 100644 --- a/pkg/commands/add.go +++ b/pkg/commands/add.go @@ -61,7 +61,7 @@ func (a *AddCommand) ExecuteCommand(config *manifest.Schema2Config) error { // 1. Unpack them to the specified destination // 2. Remove it as a source that needs to be copied over // If any of the sources is a remote file URL: - // 1. Download and copy it to the specifed dest + // 1. Download and copy it to the specified dest // 2. Remove it as a source that needs to be copied for src, files := range srcMap { for _, file := range files {