Bug 272028

Summary: lang/go120: Fails to build sysutils/gotop: x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Ports FrameworkAssignee: Golang Team (Nobody) <go>
Status: New ---    
Severity: Affects Only Me CC: go
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Yuri Victorovich freebsd_committer freebsd_triage 2023-06-16 16:19:59 UTC
After updating sysutils/gotop to 4.2.0 and 'make makesum' the build fails:
> vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
> vendor/golang.org/x/sys/unix/syscall_unix.go:118:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)

go.mk doesn't seem to set -lang as the message says.
Correcting the version in go.mod causes build failures.