Failing devel/esbuild after go update?

Jonathan Chen <[email protected]> Sat, 20 Jun 2026 08:30:25 +1200
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
Hi,

I'm trying to build chrome, but I'm getting an error when building one 
of its dependency, devel/esbuild. This appears to be a consequence of 
the go version-bump.

===>  Building for esbuild-0.28.0_2
(cd 
/construction/xports/devel/esbuild/work/github.com/evanw/[email protected]; 
  for t in ./cmd/esbuild:esbuild; do  out=$(/usr/bin/basename $(echo 
${t} |  /usr/bin/se
d -Ee 's/^[^:]*:([^:]+).*$/\1/' -e 's/^\.$/esbuild/'));  pkg=$(echo ${t} 
|  /usr/bin/sed -Ee 's/^([^:]*).*$/\1/' -e 's/^esbuild$/./');  echo 
"===>  Building ${out} f
rom ${pkg}";  /usr/bin/env -i 
HOME=/construction/xports/devel/esbuild/work  MACHINE_ARCH=amd64 
PWD="${PWD}"  GIT_CEILING_DIRECTORIES=/construction/xports/devel/esbu
ild/work  __MAKE_CONF=/nonexistent OSVERSION=1501501 
PATH=/usr/local/libexec/ccache:/construction/xports/devel/esbuild/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/l
ocal/sbin:/usr/local/bin TERM=dumb TMPDIR=/tmp UNAME_m=amd64 
UNAME_p=amd64 UNAME_r=15.1-SYNTH UNAME_s=FreeBSD UNAME_v=FreeBSD\ 
15.1-SYNTH XDG_DATA_HOME=/construction
/xports/devel/esbuild/work 
XDG_CONFIG_HOME=/construction/xports/devel/esbuild/work 
XDG_CACHE_HOME=/construction/xports/devel/esbuild/work/.cache 
HOME=/constructio
n/xports/devel/esbuild/work TMPDIR="/tmp" 
PATH=/usr/local/libexec/ccache:/construction/xports/devel/esbuild/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/
usr/local/bin 
PKG_CONFIG_LIBDIR=/construction/xports/devel/esbuild/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig 
MK_
DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES 
PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe 
-fstack-protector-strong -fno-stric
t-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" " LIBS=""  CXX="c++" 
CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing   " 
CCACHE_DIR="/ccache" BSD_IN
STALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 
0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install 
-m 0644"  BSD_INSTALL_MAN
="install  -m 444" CGO_ENABLED=1  CGO_CFLAGS="-I/usr/local/include" 
CGO_LDFLAGS="-L/usr/local/lib"  GOAMD64=  GOARM= 
GOTMPDIR="/construction/xports/devel/esbuild/w
ork" GOPATH="/distfiles/go/devel_esbuild" 
GOBIN="/construction/xports/devel/esbuild/work/bin"  GO111MODULE=on 
GOFLAGS=-modcacherw  GOSUMDB=sum.golang.org GOMAXPROC
S=6 GOPROXY=off /usr/local/bin/go125 build -buildmode=exe -v -trimpath 
-ldflags '-s ' -buildvcs=false -mod=vendor  -o 
/construction/xports/devel/esbuild/work/bin/${o
ut}  ${pkg};  done)
===>  Building esbuild from ./cmd/esbuild
internal/fs/modkey_unix.go:9:2: cannot find module providing package 
golang.org/x/sys/unix: import lookup disabled by -mod=vendor
*** Error code 1

Stop.
make: stopped making "build" in /xports/devel/esbuild

The build is on STABLE-15/amd64 using synth. Is anyone else seeing this?

Cheers.
-- 
Jonathan Chen <[email protected]>