mirror of
https://github.com/mudler/luet.git
synced 2025-09-08 18:49:39 +00:00
🔧 Use crane.Insecure while checking image availability
As those checks are not consuming any digest, we just use them to assess if we need to build or not certain packages. The backend will refuse the image if not configured appropriately
This commit is contained in:
@@ -29,7 +29,9 @@ const (
|
||||
)
|
||||
|
||||
func imageAvailable(image string) bool {
|
||||
_, err := crane.Digest(image)
|
||||
// We use crane.insecure as we just check if the image is available
|
||||
// It's the daemon duty to use it or not based on the host settings
|
||||
_, err := crane.Digest(image, crane.Insecure)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user