Skip to content

Commit 748ef80

Browse files
committed
ci: Match the macOS wheel baseline to the Go toolchain
Go 1.26, which go.mod pins and the release job builds with, requires macOS 12. A macOS wheel tag is a minimum, so 10.13/11 tags let pip install onto systems the binary cannot run on.
1 parent d526052 commit 748ef80

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

packaging/pypi/build_wheels.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@
3737
# GoReleaser target -> wheel platform tag(s). A wheel may claim several
3838
# platforms; the compressed tag set is joined with "." in the filename.
3939
# CGO is disabled, so the Linux binaries are static and run on musl too.
40+
#
41+
# A macOS tag is a minimum: macosx_12_0 installs on 12 and newer. Keep it at
42+
# the floor of the Go version in go.mod, which the release job builds with --
43+
# claiming more than the binary supports means installing onto a macOS that
44+
# cannot run it. Go 1.26 needs macOS 12; 1.27 moves to 13. See
45+
# https://go.dev/wiki/MinimumRequirements
4046
PLATFORM_TAGS: dict[tuple[str, str], list[str]] = {
41-
("darwin", "amd64"): ["macosx_10_13_x86_64"],
42-
("darwin", "arm64"): ["macosx_11_0_arm64"],
47+
("darwin", "amd64"): ["macosx_12_0_x86_64"],
48+
("darwin", "arm64"): ["macosx_12_0_arm64"],
4349
("linux", "amd64"): ["manylinux2014_x86_64", "musllinux_1_1_x86_64"],
4450
("linux", "arm64"): ["manylinux2014_aarch64", "musllinux_1_1_aarch64"],
4551
("windows", "amd64"): ["win_amd64"],

0 commit comments

Comments
 (0)