Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid race when mutating annotations (#1368)
This is a quick fix to a race condition we're hitting when building multi-arch images. The ImageConfiguration struct gets passed around by value, but the collections (e.g. annotations) don't get copied, so if multiple architectures attempt to set an annotation at the same time, we'll hit a race. This creates a defensive copy to avoid that. Signed-off-by: Jon Johnson <[email protected]>
- Loading branch information