Skip to content

Commit

Permalink
Switch crossbuilding to Debian 11
Browse files Browse the repository at this point in the history
We're dropping support for Debian 10, so no need to crossbuild using
the outdated image anymore.

The old linker in Debian 10 caused a packaging issue with some Go
dependency updates #41270

So, this update should also help with that.
  • Loading branch information
rdner committed Oct 23, 2024
1 parent 77e7d80 commit 4784af6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dev-tools/mage/crossbuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ func CrossBuildImage(platform string) (string, error) {

switch {
case platform == "darwin/amd64":
tagSuffix = "darwin-debian10"
tagSuffix = "darwin-debian11"
case platform == "darwin/arm64":
tagSuffix = "darwin-arm64-debian10"
tagSuffix = "darwin-arm64-debian11"
case platform == "darwin/universal":
tagSuffix = "darwin-arm64-debian10"
tagSuffix = "darwin-arm64-debian11"
case platform == "linux/arm64":
tagSuffix = "arm"
case platform == "linux/armv5":
Expand All @@ -235,13 +235,13 @@ func CrossBuildImage(platform string) (string, error) {
case platform == "linux/armv7":
tagSuffix = "armhf"
case strings.HasPrefix(platform, "linux/mips"):
tagSuffix = "mips-debian10"
tagSuffix = "mips-debian11"
case strings.HasPrefix(platform, "linux/ppc"):
tagSuffix = "ppc-debian10"
tagSuffix = "ppc-debian11"
case platform == "linux/s390x":
tagSuffix = "s390x-debian10"
tagSuffix = "s390x-debian11"
case strings.HasPrefix(platform, "linux"):
tagSuffix = "main-debian10"
tagSuffix = "main-debian11"
}

goVersion, err := GoVersion()
Expand Down

0 comments on commit 4784af6

Please sign in to comment.