1
0
mirror of https://github.com/moby/buildkit.git synced 2025-07-17 10:40:59 +03:00

lint: add fatcontext

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2025-05-01 21:44:14 -07:00
parent e291d88c1b
commit 1e512a15c3
14 changed files with 23 additions and 18 deletions

View File

@ -45,7 +45,7 @@ func (sr *immutableRef) tryComputeOverlayBlob(ctx context.Context, lower, upper
defer func() {
if cw != nil {
ctx = context.WithoutCancel(ctx)
ctx := context.WithoutCancel(ctx)
// after commit success cw will be set to nil, if cw isn't nil, error
// happened before commit, we should abort this ingest, and because the
// error may incured by ctx cancel, use a new context here. And since