mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to f7bda278b7e2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
8
vendor/github.com/moby/buildkit/frontend/dockerfile/linter/ruleset.go
generated
vendored
8
vendor/github.com/moby/buildkit/frontend/dockerfile/linter/ruleset.go
generated
vendored
@ -124,4 +124,12 @@ var (
|
||||
return fmt.Sprintf("Base image %s was pulled with platform %q, expected %q for current build", image, actual, expected)
|
||||
},
|
||||
}
|
||||
RuleRedundantTargetPlatform = LinterRule[func(string) string]{
|
||||
Name: "RedundantTargetPlatform",
|
||||
Description: "Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior",
|
||||
URL: "https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/",
|
||||
Format: func(platformVar string) string {
|
||||
return fmt.Sprintf("Setting platform to predefined %s in FROM is redundant as this is the default behavior", platformVar)
|
||||
},
|
||||
}
|
||||
)
|
||||
|
2
vendor/github.com/moby/buildkit/frontend/dockerfile/parser/line_parsers.go
generated
vendored
2
vendor/github.com/moby/buildkit/frontend/dockerfile/parser/line_parsers.go
generated
vendored
@ -282,7 +282,7 @@ func parseJSON(rest string) (*Node, map[string]bool, error) {
|
||||
}
|
||||
|
||||
var myJSON []interface{}
|
||||
if err := json.NewDecoder(strings.NewReader(rest)).Decode(&myJSON); err != nil {
|
||||
if err := json.Unmarshal([]byte(rest), &myJSON); err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user