maintainer-feedback requested: [Bug 287103] sysutils/beats7: doesn't build with Go version > 1.21

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 28 May 2025 01:22:24 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-elastic (Nobody)
<elastic@FreeBSD.org> for maintainer-feedback:
Bug 287103: sysutils/beats7: doesn't build with Go version > 1.21
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287103



--- Description ---
OS: 14.3-STABLE stable/14-n271394-3ab24f211ae8
beats7-7.17.11_13

Currently, the default version of Go is 1.24.3. With this version
sysutils/beats7 fails to build:

>> build: Building filebeat
# github.com/elastic/beats/v7/filebeat
link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg
Error: running "go build -o filebeat -ldflags -s -X
github.com/elastic/beats/v7/libbeat/version.buildTime=2025-05-28T01:13:02Z -X
github.com/elastic/beats/v7/libbeat/version.commit=v7.17.11" failed with exit
code 1
*** Error code 1

But... if I add in /etc/make.conf:
DEFAULT_VERSIONS+= go=1.21
...it builds fine.