Skip to content

Commit 390ab84

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a1fce5e commit 390ab84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/builtins/registry/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func Lookup(imageName string) BuiltinFunction {
4343
defer mu.RUnlock()
4444
normalized := normalizeImage(imageName)
4545
if strings.HasSuffix(imageName, ":latest") ||
46-
strings.HasSuffix(imageName, "@sha256:") {
46+
strings.Contains(imageName, "@sha256:") {
4747
return nil
4848
}
4949
fn := registry[normalized]

0 commit comments

Comments
 (0)