18 lines
596 B
Diff
18 lines
596 B
Diff
--- a/src/pkg/utils/utils.go
|
|
+++ b/src/pkg/utils/utils.go
|
|
@@ -574,4 +574,7 @@
|
|
func ImageReferenceGetBasename(image string) string {
|
|
+ // A digest pins the image, but is not part of its repository basename.
|
|
+ image, _, _ = strings.Cut(image, "@")
|
|
+
|
|
var i int
|
|
if ImageReferenceHasDomain(image) {
|
|
i = strings.IndexRune(image, '/')
|
|
@@ -601,4 +604,7 @@
|
|
func ImageReferenceGetTag(image string) string {
|
|
+ // Do not interpret the digest's colon as a tag separator.
|
|
+ image, _, _ = strings.Cut(image, "@")
|
|
+
|
|
var i int
|
|
if ImageReferenceHasDomain(image) {
|
|
i = strings.IndexRune(image, '/')
|