mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: buildkit v0.7.2
v0.7.2 ---------------- Fixes: - solver: gracefully handle cache loading errors - remotecache: only visit each item once when walking results - cache: avoid possible nil dereference on error handling - contenthash: allow security.capability in cache checksum - contenthash: treat unix sockets as regular files - push: fix race condition on pushing the same layers in parallel - inline cache: fix handling of duplicate blobs in same image - gateway: fix metadata getting lost on subsolve in external frontend - filesync: avoid ignoring close error - runc: update runc binary to v1.0.0-rc91 - buildctl-daemonless: allow max retries on socket connect for buildctl - buildctl-daemonless: fix shell args expansion - buildctl-daemonless: show log on startup timeout v0.7.1 ---------------- Fixes: - git: use --force flag on fetch - tar exporter: handle symlinks properly - resolver: disable http2 for pushing Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
9
vendor/github.com/moby/buildkit/session/filesync/filesync.go
generated
vendored
9
vendor/github.com/moby/buildkit/session/filesync/filesync.go
generated
vendored
@ -255,7 +255,7 @@ func (sp *fsSyncTarget) Register(server *grpc.Server) {
|
||||
RegisterFileSendServer(server, sp)
|
||||
}
|
||||
|
||||
func (sp *fsSyncTarget) DiffCopy(stream FileSend_DiffCopyServer) error {
|
||||
func (sp *fsSyncTarget) DiffCopy(stream FileSend_DiffCopyServer) (err error) {
|
||||
if sp.outdir != "" {
|
||||
return syncTargetDiffCopy(stream, sp.outdir)
|
||||
}
|
||||
@ -277,7 +277,12 @@ func (sp *fsSyncTarget) DiffCopy(stream FileSend_DiffCopyServer) error {
|
||||
if wc == nil {
|
||||
return status.Errorf(codes.AlreadyExists, "target already exists")
|
||||
}
|
||||
defer wc.Close()
|
||||
defer func() {
|
||||
err1 := wc.Close()
|
||||
if err != nil {
|
||||
err = err1
|
||||
}
|
||||
}()
|
||||
return writeTargetFile(stream, wc)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user