File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,9 @@ tar -xvf temp.tar -C temp
45
45
rm temp.tar
46
46
jq '
47
47
.manifests |= (
48
- del(.[].annotations)
49
- | unique
48
+ unique_by([ .digest, .size, .mediaType ])
50
49
| if length != 1 then
51
- error("unexpected number of manifests: " + length)
50
+ error("unexpected number of manifests: \( length)" )
52
51
else . end
53
52
)
54
53
' temp/index.json > temp/index.json.new
Original file line number Diff line number Diff line change @@ -209,10 +209,9 @@ def build_command:
209
209
# munge the index to what crane wants ("Error: layout contains 5 entries, consider --index")
210
210
@sh "jq \( "
211
211
.manifests |= (
212
- del(.[].annotations)
213
- | unique
212
+ unique_by([ .digest, .size, .mediaType ])
214
213
| if length != 1 then
215
- error(\" unexpected number of manifests: \" + length)
214
+ error(\" unexpected number of manifests: \\ ( length) \" )
216
215
else . end
217
216
)
218
217
" | unindent_and_decomment_jq (3 )) temp/index.json > temp/index.json.new" ,
You can’t perform that action at this time.
0 commit comments