File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ var recentVersionTags = []string{
30
30
}
31
31
32
32
func isMinimumVersion (image string , minVersion string ) bool {
33
- parts := strings .Split (image , ":" )
33
+ parts := strings .Split (strings . Split ( image , "@" )[ 0 ] , ":" )
34
34
version := parts [len (parts )- 1 ]
35
35
36
36
if pos := strings .LastIndexByte (version , '-' ); pos >= 0 {
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ func TestIsLegacyVersion(t *testing.T) {
108
108
{"1-amd64" , false },
109
109
{"1.0" , false },
110
110
{"1.0-amd64" , false },
111
+ {"4.3.0@sha256:f3cb1a79f3add997575e859c3a2808e6dae4b0de836661de255baa2b576868f8" , false },
111
112
}
112
113
113
114
for _ , tt := range tests {
@@ -148,6 +149,7 @@ func TestIsMinimumVersion2(t *testing.T) {
148
149
{"2.1-amd64" , true },
149
150
{"3" , true },
150
151
{"3-amd64" , true },
152
+ {"4.3.0@sha256:f3cb1a79f3add997575e859c3a2808e6dae4b0de836661de255baa2b576868f8" , true },
151
153
}
152
154
153
155
for _ , tt := range tests {
You can’t perform that action at this time.
0 commit comments