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
4545rm temp.tar
4646jq '
4747 .manifests |= (
48- del(.[].annotations)
49- | unique
48+ unique_by([ .digest, .size, .mediaType ])
5049 | if length != 1 then
51- error("unexpected number of manifests: " + length)
50+ error("unexpected number of manifests: \( length)" )
5251 else . end
5352 )
5453' temp/index.json > temp/index.json.new
Original file line number Diff line number Diff line change @@ -209,10 +209,9 @@ def build_command:
209209 # munge the index to what crane wants ("Error: layout contains 5 entries, consider --index")
210210 @sh "jq \( "
211211 .manifests |= (
212- del(.[].annotations)
213- | unique
212+ unique_by([ .digest, .size, .mediaType ])
214213 | if length != 1 then
215- error(\" unexpected number of manifests: \" + length)
214+ error(\" unexpected number of manifests: \\ ( length) \" )
216215 else . end
217216 )
218217 " | unindent_and_decomment_jq (3 )) temp/index.json > temp/index.json.new" ,
You can’t perform that action at this time.
0 commit comments