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 { 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 { 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) 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 { 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 { 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()