mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to v0.14.0-rc2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
7
vendor/github.com/moby/buildkit/frontend/subrequests/lint/lint.go
generated
vendored
7
vendor/github.com/moby/buildkit/frontend/subrequests/lint/lint.go
generated
vendored
@ -169,10 +169,12 @@ func PrintLintViolations(dt []byte, w io.Writer) error {
|
||||
})
|
||||
|
||||
for _, warning := range results.Warnings {
|
||||
fmt.Fprintf(w, "\n- %s\n%s\n", warning.Detail, warning.Description)
|
||||
fmt.Fprintf(w, "%s", warning.RuleName)
|
||||
if warning.URL != "" {
|
||||
fmt.Fprintf(w, "URL: %s\n", warning.URL)
|
||||
fmt.Fprintf(w, " - %s", warning.URL)
|
||||
}
|
||||
fmt.Fprintf(w, "\n%s\n", warning.Description)
|
||||
|
||||
if warning.Location.SourceIndex < 0 {
|
||||
continue
|
||||
}
|
||||
@ -185,6 +187,7 @@ func PrintLintViolations(dt []byte, w io.Writer) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Fprintln(w)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user