From 1095aa2b6512c6c8b7175036edc2f530e3e49a69 Mon Sep 17 00:00:00 2001 From: 1Panel-bot <127940126+1Panel-bot@users.noreply.github.com> Date: Mon, 20 Mar 2023 11:34:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E8=BE=93=E5=87=BA=E9=83=A8=E5=88=86=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98=20(#310)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: 解决镜像构建输出部分丢失的问题 --- backend/app/service/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/image.go b/backend/app/service/image.go index dcc344daf..b0c217c4d 100644 --- a/backend/app/service/image.go +++ b/backend/app/service/image.go @@ -186,7 +186,7 @@ func (u *ImageService) ImageBuild(req dto.ImageBuild) (string, error) { return } global.LOG.Infof("build image %s successful!", req.Name) - _, _ = io.Copy(file, res.Body) + _, _ = file.Write(body) _, _ = file.WriteString("image build successful!") }()