fix function name on comment (#2707)
Signed-off-by: geekvest <cuimoman@sohu.com>
This commit is contained in:
parent
2b6b5948da
commit
5df0343d5b
|
|
@ -102,7 +102,7 @@ func Parse(b []byte) ([]instructions.Stage, []instructions.ArgCommand, error) {
|
||||||
return stages, metaArgs, nil
|
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) {
|
func expandNested(metaArgs []instructions.ArgCommand, buildArgs []string) ([]instructions.ArgCommand, error) {
|
||||||
var prevArgs []string
|
var prevArgs []string
|
||||||
for i, marg := range metaArgs {
|
for i, marg := range metaArgs {
|
||||||
|
|
|
||||||
|
|
@ -751,7 +751,7 @@ func DoBuild(opts *config.KanikoOptions) (v1.Image, error) {
|
||||||
return nil, err
|
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.
|
// If a file is a symlink, it also returns the target file.
|
||||||
func filesToSave(deps []string) ([]string, error) {
|
func filesToSave(deps []string) ([]string, error) {
|
||||||
srcFiles := []string{}
|
srcFiles := []string{}
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ const (
|
||||||
securityCapabilityXattr = "security.capability"
|
securityCapabilityXattr = "security.capability"
|
||||||
)
|
)
|
||||||
|
|
||||||
// writeSecurityXattrToTarHeader writes security.capability
|
// writeSecurityXattrToToFile writes security.capability
|
||||||
// xattrs from a tar header to filesystem
|
// xattrs from a tar header to filesystem
|
||||||
func writeSecurityXattrToToFile(path string, hdr *tar.Header) error {
|
func writeSecurityXattrToToFile(path string, hdr *tar.Header) error {
|
||||||
if hdr.Xattrs == nil {
|
if hdr.Xattrs == nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue