Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 330f0ae

Browse files
tonistiigithaJeztah
authored andcommitted
builder: fix concurrent map write
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> (cherry picked from commit 5ad981640f9e747e9c9d29c686084206e007f07b) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: f34a5b5af018f0f7aa1d9aeeb4d6d7a7ef99f528 Component: engine
1 parent 565e5c5 commit 330f0ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

components/engine/builder/builder-next/builder.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder.
241241
}
242242

243243
defer func() {
244+
b.mu.Lock()
244245
delete(b.jobs, buildID)
246+
b.mu.Unlock()
245247
}()
246248
}
247249

0 commit comments

Comments
 (0)