Skip to content

Commit

Permalink
fix function name on comment (#2707)
Browse files Browse the repository at this point in the history
Signed-off-by: geekvest <cuimoman@sohu.com>
  • Loading branch information
geekvest authored Sep 1, 2023
1 parent 2b6b594 commit 5df0343
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/dockerfile/dockerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/executor/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/tar_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5df0343

Please sign in to comment.