Fix an issue where warnings aren't displayed correctly (#136)

This is a byte array that needs to be string'd.
This commit is contained in:
Bryce Lampe
2024-06-27 14:07:25 -07:00
committed by GitHub
parent 3ce3c83c3e
commit bbdefef3c8
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
- Upgraded buildkit from 0.13.0 to 0.14.1. - Upgraded buildkit from 0.13.0 to 0.14.1.
- Upgraded buildx from 0.13.1. to 0.15.1. - Upgraded buildx from 0.13.1. to 0.15.1.
- Upgraded docker from 26.0.0-rc1 to 27.0.1. - Upgraded docker from 26.0.0-rc1 to 27.0.1.
- Fixed an issue where warnings were not displayed correctly.
## 0.0.3 (2024-05-31) ## 0.0.3 (2024-05-31)

View File

@@ -128,7 +128,7 @@ func (c *cli) Build(
_ = printer.Wait() _ = printer.Wait()
for _, w := range printer.Warnings() { for _, w := range printer.Warnings() {
b := &bytes.Buffer{} b := &bytes.Buffer{}
fmt.Fprint(b, w.Short) fmt.Fprint(b, fmt.Sprint(w.Short))
for _, d := range w.Detail { for _, d := range w.Detail {
fmt.Fprintf(b, "\n%s", d) fmt.Fprintf(b, "\n%s", d)
} }