Skip to content

Commit

Permalink
Update architectures lists with more references
Browse files Browse the repository at this point in the history
This adds riscv64 to our `case` statement so that we're _ready_ for base image support, but it unfortunately does not update our base image to one that supports `riscv64` yet (because that's still Debian Unstable / Alpine Edge only).
  • Loading branch information
tianon committed Jul 13, 2023
1 parent 5eca4a0 commit 431c08f
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 1.19/alpine3.17/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions 1.19/alpine3.18/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions 1.20/alpine3.17/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions 1.20/alpine3.18/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions 1.21-rc/alpine3.17/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions 1.21-rc/alpine3.18/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Dockerfile-linux.template
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,24 @@ ENV GOLANG_VERSION {{ .version }}
def os_arches:
if is_alpine then
{
# https://dl-cdn.alpinelinux.org/alpine/edge/main/
# https://dl-cdn.alpinelinux.org/alpine/latest-stable/main/
amd64: "x86_64",
arm32v6: "armhf",
arm32v7: "armv7",
arm64v8: "aarch64",
i386: "x86",
ppc64le: "ppc64le",
riscv64: "riscv64",
s390x: "s390x",
}
else
{
# https://salsa.debian.org/dpkg-team/dpkg/-/blob/main/data/cputable
# https://wiki.debian.org/ArchitectureSpecificsMemo#Architecture_baselines
# http://deb.debian.org/debian/dists/unstable/main/
# http://deb.debian.org/debian/dists/stable/main/
# https://deb.debian.org/debian-ports/dists/unstable/main/
amd64: "amd64",
arm32v5: "armel",
arm32v7: "armhf",
Expand Down
2 changes: 1 addition & 1 deletion versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ goVersions="$(
.arch
| sub("^386$"; "i386")
| sub("^arm64$"; "arm64v8")
| sub("^armv(?<v>[0-9]+)l?$"; "arm32v\(.v)")
| sub("^arm-?v?(?<v>[0-9]+)l?$"; "arm32v\(.v)")
)
end
) as $bashbrewArch
Expand Down

0 comments on commit 431c08f

Please sign in to comment.