[Bug 269701] Mk/Uses/go.mk: USES=go fails to build databases/dolt

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 20 Feb 2023 20:55:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269701

--- Comment #3 from Dmitri Goutnik <dmgk@freebsd.org> ---
Created attachment 240293
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=240293&action=edit
Makefile

With attached Makefile, this ports sort of "attempts" to build for me in
Poudriere (see below).

- go.mod manual fetch is needed because this module is not listed on
proxy.golang.org (go.mod needs to be in the module root, but it isn't)
- go.mk cannot handle go.mod's that have replace directives referencing local
filesystem path, so eventsapi's go.mod is also manually fetched

This gets us to the build stage, which eventually fails with

# github.com/dolthub/go-mysql-server/internal/sockstate
vendor/github.com/dolthub/go-mysql-server/internal/sockstate/sockstate.go:37:16:
undefined: tcpSocks

which is likely caused by the lack of awareness of FreeBSD existence in
https://github.com/dolthub/go-mysql-server/blob/main/internal/sockstate/netstat_unix.go
and probably needs to be reported upstream.

-- 
You are receiving this mail because:
You are on the CC list for the bug.