buildpacks / imgutil

Helpful utilities for working with images
Apache License 2.0
24 stars 41 forks source link

Initialize the map only once to support multiple registries #220

Closed dlion closed 11 months ago

dlion commented 11 months ago

This PR would fix the problem affecting the utilization of multiple insecure registries using the remote.WithRegistrySetting function.

With this PR we initialize the map only once.

Thanks to @jabrown85 to have spotted the problem https://github.com/buildpacks/imgutil/pull/219#issuecomment-1723712678