fix(build): pin apache/thrift to v0.22.0 for 32-bit GOARCH

thrift v0.23.0 uses math.MaxUint32 as an untyped int constant in
lib/go/thrift/framed_transport.go:206, which overflows int on 32-bit
targets (openbsd/arm, linux/arm, freebsd/arm, netbsd/arm) and breaks
the release binary builds.
This commit is contained in:
Chris Lu committed 2026-05-13 20:56:32 -07:00
1 parent 1dfea8a502
commit 4bac9985b4
2 files changed
+7 -3

No files matched your search

+5
View File
@@ -519,3 +519,8 @@ require (
)
// replace github.com/seaweedfs/raft => /Users/chrislu/go/src/github.com/seaweedfs/raft
// apache/thrift v0.23.0 uses math.MaxUint32 as an untyped int constant in
// lib/go/thrift/framed_transport.go, which overflows int on 32-bit GOARCHes
// (e.g. openbsd/arm, linux/arm). Pin to v0.22.0 until upstream fixes it.
replace github.com/apache/thrift => github.com/apache/thrift v0.22.0