Skip to content

Commit 289f581

Browse files
committed
Add back amd64 and make sure we don't lose it again
1 parent 01e35e2 commit 289f581

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

20.10/cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

20.10/dind-rootless/Dockerfile

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

20.10/dind/Dockerfile

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

versions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"20.10": {
33
"arches": {
4+
"amd64": {
5+
"dockerUrl": "https://download.docker.com/linux/static/stable/x86_64/docker-20.10.23.tgz",
6+
"rootlessExtrasUrl": "https://download.docker.com/linux/static/stable/x86_64/docker-rootless-extras-20.10.23.tgz"
7+
},
48
"arm32v6": {
59
"dockerUrl": "https://download.docker.com/linux/static/stable/armel/docker-20.10.23.tgz"
610
},

versions.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ for version in "${versions[@]}"; do
213213
}'
214214
)"
215215

216-
hasWindows=
216+
declare -A hasArches=()
217217
for bashbrewArch in "${!dockerArches[@]}"; do
218218
arch="${dockerArches[$bashbrewArch]}"
219219
# check whether the given architecture is supported for this release
@@ -232,8 +232,9 @@ for version in "${versions[@]}"; do
232232
continue
233233
fi
234234

235+
hasArches["$bashbrewArch"]=1
236+
235237
if [ -n "$windows" ]; then
236-
hasWindows=1
237238
continue # Windows doesn't have rootless extras :)
238239
fi
239240

@@ -252,6 +253,13 @@ for version in "${versions[@]}"; do
252253
esac
253254
done
254255

256+
for alwaysExpectedArch in amd64 arm64v8; do
257+
if [ -z "${hasArches["$alwaysExpectedArch"]:-}" ]; then
258+
echo >&2 "error: missing '$alwaysExpectedArch' for '$version'; cowardly refusing to continue! (because this is almost always a scraping flake or similar bug)"
259+
exit 1
260+
fi
261+
done
262+
255263
# order here controls the order of the library/ file
256264
for variant in \
257265
cli \
@@ -262,7 +270,7 @@ for version in "${versions[@]}"; do
262270
windows/windowsservercore-1809 \
263271
; do
264272
base="${variant%%/*}" # "buster", "windows", etc.
265-
if [ "$base" = 'windows' ] && [ -z "$hasWindows" ]; then
273+
if [ "$base" = 'windows' ] && [ -z "${hasArches['windows-amd64']}" ]; then
266274
continue
267275
fi
268276
export variant

0 commit comments

Comments
 (0)