mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	vendor: update buildkit to v0.15.0-rc1
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
		
							
								
								
									
										16
									
								
								vendor/github.com/moby/buildkit/frontend/dockerfile/linter/ruleset.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								vendor/github.com/moby/buildkit/frontend/dockerfile/linter/ruleset.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -132,4 +132,20 @@ var (
 | 
			
		||||
			return fmt.Sprintf("Setting platform to predefined %s in FROM is redundant as this is the default behavior", platformVar)
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
	RuleSecretsUsedInArgOrEnv = LinterRule[func(string, string) string]{
 | 
			
		||||
		Name:        "SecretsUsedInArgOrEnv",
 | 
			
		||||
		Description: "Sensitive data should not be used in the ARG or ENV commands",
 | 
			
		||||
		URL:         "https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/",
 | 
			
		||||
		Format: func(instruction, secretKey string) string {
 | 
			
		||||
			return fmt.Sprintf("Do not use ARG or ENV instructions for sensitive data (%s %q)", instruction, secretKey)
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
	RuleInvalidDefaultArgInFrom = LinterRule[func(string) string]{
 | 
			
		||||
		Name:        "InvalidDefaultArgInFrom",
 | 
			
		||||
		Description: "Default value for global ARG results in an empty or invalid base image name",
 | 
			
		||||
		URL:         "https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/",
 | 
			
		||||
		Format: func(baseName string) string {
 | 
			
		||||
			return fmt.Sprintf("Default value for ARG %v results in empty or invalid base image name", baseName)
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										17
									
								
								vendor/github.com/moby/buildkit/util/gitutil/git_cli.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/moby/buildkit/util/gitutil/git_cli.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -119,20 +119,13 @@ func NewGitCLI(opts ...Option) *GitCLI {
 | 
			
		||||
// New returns a new git client with the same config as the current one, but
 | 
			
		||||
// with the given options applied on top.
 | 
			
		||||
func (cli *GitCLI) New(opts ...Option) *GitCLI {
 | 
			
		||||
	c := &GitCLI{
 | 
			
		||||
		git:           cli.git,
 | 
			
		||||
		dir:           cli.dir,
 | 
			
		||||
		workTree:      cli.workTree,
 | 
			
		||||
		gitDir:        cli.gitDir,
 | 
			
		||||
		args:          append([]string{}, cli.args...),
 | 
			
		||||
		streams:       cli.streams,
 | 
			
		||||
		sshAuthSock:   cli.sshAuthSock,
 | 
			
		||||
		sshKnownHosts: cli.sshKnownHosts,
 | 
			
		||||
	}
 | 
			
		||||
	clone := *cli
 | 
			
		||||
	clone.args = append([]string{}, cli.args...)
 | 
			
		||||
 | 
			
		||||
	for _, opt := range opts {
 | 
			
		||||
		opt(c)
 | 
			
		||||
		opt(&clone)
 | 
			
		||||
	}
 | 
			
		||||
	return c
 | 
			
		||||
	return &clone
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Run executes a git command with the given args.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user