Building for esbuild-0.28.0_2(cd
Building esbuild from ./cmd/esbuildinternal/fs/modkey_unix.go:9:2: cannot find module providing package golang.org/x/sys/unix: import lookup disabled by -mod=vendor
Hi,I've just tried building from /usr/ports, and I see that the actual cause of the error is from the "fetch" phase:
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/esbuild@v0.28.0; 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/esbuildinternal/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
esbuild-0.28.0_2 depends on file: /usr/local/sbin/pkg - foundgo: finding module for package golang.org/x/sys/unix
esbuild-0.28.0_2 depends on file: /usr/local/bin/go125 - found
Fetching all distfiles required by esbuild-0.28.0_2 for building
Fetching github.com/evanw/esbuild dependencies
Extracting for esbuild-0.28.0_2
SHA256 Checksum OK for go/devel_esbuild/esbuild-v0.28.0/v0.28.0.mod.
SHA256 Checksum OK for go/devel_esbuild/esbuild-v0.28.0/v0.28.0.zip.
Tidying github.com/evanw/esbuild dependencies
Vendoring github.com/evanw/esbuild dependenciesgo: github.com/evanw/esbuild/internal/fs imports
Patching for esbuild-0.28.0_2(cd /tmp/usr/ports/devel/esbuild/work/github.com/evanw/esbuild@v0.28.0; for t in ./cmd/esbuild:esbuild; do out=$(/usr/bin/basename $(echo ${t} | /usr/bin/sed -Ee 's/^[^:]*:([^:]+).*$/\1/' -e 's/^\.$/esbuild/')); pkg=$(echo ${t} | /usr/bin/sed -Ee 's/^([^:]*).*$/\1/' -e 's/^esbuild$/./'); echo "===> Building ${out} from ${pkg}"; /usr/bin/env -i HOME=/tmp/usr/ports/devel/esbuild/work MACHINE_ARCH=amd64 PWD="${PWD}" GIT_CEILING_DIRECTORIES=/tmp/usr/ports/devel/esbuild/work __MAKE_CONF=/nonexistent OSVERSION=1501501 PATH=/tmp/usr/ports/devel/esbuild/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin TERM=screen XDG_DATA_HOME=/tmp/usr/ports/devel/esbuild/work XDG_CONFIG_HOME=/tmp/usr/ports/devel/esbuild/work XDG_CACHE_HOME=/tmp/usr/ports/devel/esbuild/work/.cache HOME=/tmp/usr/ports/devel/esbuild/work PATH=/tmp/usr/ports/devel/esbuild/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/tmp/usr/ports/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-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " BSD_INSTALL_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="/tmp/usr/ports/devel/esbuild/work" GOPATH="/var/distfiles/go/devel_esbuild" GOBIN="/tmp/usr/ports/devel/esbuild/work/bin" GO111MODULE=on GOFLAGS=-modcacherw GOSUMDB=sum.golang.org GOMAXPROCS=24 GOPROXY=off /usr/local/bin/go125 build -buildmode=exe -v -trimpath -ldflags '-s ' -buildvcs=false -mod=vendor -o /tmp/usr/ports/devel/esbuild/work/bin/${out} ${pkg}; done)
esbuild-0.28.0_2 depends on file: /usr/local/bin/go125 - found
Configuring for esbuild-0.28.0_2
Building for esbuild-0.28.0_2
Building esbuild from ./cmd/esbuildinternal/fs/modkey_unix.go:9:2: cannot find module providing package golang.org/x/sys/unix: import lookup disabled by -mod=vendor
Building esbuild from ./cmd/esbuildinternal/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 "all" in /usr/ports/devel/esbuild
Is anyone else not seeing this? If not, how can I get a usable copy of golang/x/sys/unix?
License MIT accepted by the user/distfiles/go/devel_esbuild/esbuild-v0.28.0.
v0.28.0.mod doesn't seem to exist in
Attempting to fetchhttps://proxy.golang.org/github.com/evanw/esbuild/@v/v0.28.0.mod
v0.28.0.zip doesn't seem to exist in/distfiles/go/devel_esbuild/esbuild-v0.28.0.
Attempting to fetchhttps://proxy.golang.org/github.com/evanw/esbuild/@v/v0.28.0.zip
Fetching all distfiles required by esbuild-0.28.0_2 for building# get https://proxy.golang.org/golang.org/x/sys/@v/v0.0.0-20220715151400-c0bba94af5f8.mod
Fetching github.com/evanw/esbuild dependencies
I've seen this kind of behavior before with bad cached distfiles. If youThank you! This indeed fixed the problem with the build. I will make a note to clear out ${DISTFILES}/go everytime there is a go-revision bump.
look at /usr/ports/distfiles/go/devel_esbuild/ you'll find them; removing
all of them is no doubt overkill but will almost certainly fix your build.
Thank you! This indeed fixed the problem with the build. I will make a note to clear out ${DISTFILES}/go everytime there is a go-revision bump.I stared at this some more and now I wonder why "go mod download all"
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 70 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 03:28:39 |
| Calls: | 949 |
| Calls today: | 1 |
| Files: | 1,325 |
| Messages: | 281,242 |