From 5df0343d5bdd524b1bb16ac0793e235b12c94f58 Mon Sep 17 00:00:00 2001 From: geekvest <126322776+geekvest@users.noreply.github.com> Date: Sat, 2 Sep 2023 00:31:52 +0800 Subject: [PATCH] fix function name on comment (#2707) Signed-off-by: geekvest --- pkg/dockerfile/dockerfile.go | 2 +- pkg/executor/build.go | 2 +- pkg/util/tar_util.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 {