vendor: update buildkit to f7bda278b7e2

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2024-07-02 22:15:15 -07:00
parent 4be2259719
commit f374f64d2f
85 changed files with 1105 additions and 1559 deletions

View File

@ -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)
},
}
)

View File

@ -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
}