diff --git a/pkg/dockerfile/dockerfile.go b/pkg/dockerfile/dockerfile.go index a21fbe438..65d8cf22e 100644 --- a/pkg/dockerfile/dockerfile.go +++ b/pkg/dockerfile/dockerfile.go @@ -102,7 +102,7 @@ func Parse(b []byte) ([]instructions.Stage, []instructions.ArgCommand, error) { return stages, metaArgs, nil } -// expandNestedArgs tries to resolve nested ARG value against the previously defined ARGs +// expandNested tries to resolve nested ARG value against the previously defined ARGs func expandNested(metaArgs []instructions.ArgCommand, buildArgs []string) ([]instructions.ArgCommand, error) { var prevArgs []string for i, marg := range metaArgs { diff --git a/pkg/executor/build.go b/pkg/executor/build.go index db4d34c79..793af727d 100644 --- a/pkg/executor/build.go +++ b/pkg/executor/build.go @@ -751,7 +751,7 @@ func DoBuild(opts *config.KanikoOptions) (v1.Image, error) { return nil, err } -// fileToSave returns all the files matching the given pattern in deps. +// filesToSave returns all the files matching the given pattern in deps. // If a file is a symlink, it also returns the target file. func filesToSave(deps []string) ([]string, error) { srcFiles := []string{} diff --git a/pkg/util/tar_util.go b/pkg/util/tar_util.go index 6e350c24c..2ca6c470f 100644 --- a/pkg/util/tar_util.go +++ b/pkg/util/tar_util.go @@ -148,7 +148,7 @@ const ( securityCapabilityXattr = "security.capability" ) -// writeSecurityXattrToTarHeader writes security.capability +// writeSecurityXattrToToFile writes security.capability // xattrs from a tar header to filesystem func writeSecurityXattrToToFile(path string, hdr *tar.Header) error { if hdr.Xattrs == nil {