vendor: update buildkit v0.14.1

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2024-06-18 09:07:21 -07:00
parent f42a4a1e94
commit cb1be7214a
5 changed files with 10 additions and 9 deletions

View File

@ -108,7 +108,7 @@ func (results *LintResults) ToResult() (*client.Result, error) {
res.AddMeta("result.txt", b.Bytes())
status := 0
if len(results.Warnings) > 0 {
if len(results.Warnings) > 0 || results.Error != nil {
status = 1
}
res.AddMeta("result.statuscode", []byte(fmt.Sprintf("%d", status)))
@ -169,11 +169,11 @@ func PrintLintViolations(dt []byte, w io.Writer) error {
})
for _, warning := range results.Warnings {
fmt.Fprintf(w, "%s", warning.RuleName)
fmt.Fprintf(w, "\nWARNING: %s", warning.RuleName)
if warning.URL != "" {
fmt.Fprintf(w, " - %s", warning.URL)
}
fmt.Fprintf(w, "\n%s\n", warning.Description)
fmt.Fprintf(w, "\n%s\n", warning.Detail)
if warning.Location.SourceIndex < 0 {
continue
@ -187,8 +187,8 @@ func PrintLintViolations(dt []byte, w io.Writer) error {
if err != nil {
return err
}
fmt.Fprintln(w)
}
return nil
}