mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to v0.15.0-rc2
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
@ -148,4 +148,20 @@ var (
|
||||
return fmt.Sprintf("Default value for ARG %v results in empty or invalid base image name", baseName)
|
||||
},
|
||||
}
|
||||
RuleFromPlatformFlagConstDisallowed = LinterRule[func(string) string]{
|
||||
Name: "FromPlatformFlagConstDisallowed",
|
||||
Description: "FROM --platform flag should not use a constant value",
|
||||
URL: "https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/",
|
||||
Format: func(platform string) string {
|
||||
return fmt.Sprintf("FROM --platform flag should not use constant value %q", platform)
|
||||
},
|
||||
}
|
||||
RuleCopyIgnoredFile = LinterRule[func(string, string) string]{
|
||||
Name: "CopyIgnoredFile",
|
||||
Description: "Attempting to Copy file that is excluded by .dockerignore",
|
||||
URL: "https://docs.docker.com/go/dockerfile/rule/copy-ignored-file/",
|
||||
Format: func(cmd, file string) string {
|
||||
return fmt.Sprintf("Attempting to %s file %q that is excluded by .dockerignore", cmd, file)
|
||||
},
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user