Date: Sat, 14 Sep 2024 00:05:36 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 281491] Uses/go.mk: uses downloaded toolchain Message-ID: <bug-281491-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281491 Bug ID: 281491 Summary: Uses/go.mk: uses downloaded toolchain Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: fullermd@over-yonder.net With (presumably) recent go, it really wants to use the go version specifie= d in module files. https://go.dev/ref/mod#go-mod-file-go This means that it tries to download and run the toolchain out of distfiles when building packages. This is particularly visible when you have /usr/ports/distfiles on a noexec partition. e.g. (cd /usr/ports/www/gohugo ; make) =3D=3D=3D> License APACHE20 accepted by the user =3D=3D=3D> gohugo-0.134.2,1 depends on file: /usr/local/sbin/pkg - found =3D=3D=3D> gohugo-0.134.2,1 depends on file: /usr/local/bin/go121 - found =3D=3D=3D> gohugo-0.134.2,1 depends on package: ca_root_nss>0 - found =3D=3D=3D> Fetching all distfiles required by gohugo-0.134.2,1 for building =3D=3D=3D> Fetching github.com/gohugoio/hugo dependencies go: exec go1.22.6: permission denied *** Error code 1 It certainly doesn't seem like we should need to be able to `exec` things r= ight out of the distfiles dir in general, but also more broadly if something nee= ds a different version of go we should depend on having that built in ports, not silently download a binary toolchain (once for each port!) and run it out of distfiles. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281491-7788>