mirror of
https://github.com/moby/buildkit.git
synced 2026-11-06 05:16:45 +00:00
withResolveCache set g.CacheError on every ResolveImageConfig call. Base images of different stages are resolved in parallel, so these writes raced with each other and with CachedGroup.Do reading the field, which is documented as not safe to change after the first Do call. Set it once when the wrapper is created. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>