mirror of
https://github.com/mudler/luet.git
synced 2025-09-25 06:24:46 +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:
@@ -36,7 +36,7 @@ func TreePackages(treedir string) (searchResult SearchResult, err error) {
|
||||
}
|
||||
|
||||
func imageAvailable(image string) bool {
|
||||
_, err := crane.Digest(image)
|
||||
_, err := crane.Digest(image, crane.Insecure)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user