tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: go package build problem: go: cannot find GOROOT directory: 'go' binary is trimmed and GOROOT is not set



On Fri, Dec 8, 2023 at 3:51 PM Martin Husemann <martin%duskware.de@localhost> wrote:
>
> On Fri, Dec 08, 2023 at 03:28:30PM +0100, Benny Siegert wrote:
> > in src/os/executable_procfs.go, Go uses /proc on NetBSD and Linux to
> > determine the path to the go tool. On FreeBSD, for comparison, it runs
> > "sysctl proc.pathname", which NetBSD does not have.
>
> Fall back to KERN_PROC_PATHNAME ?
> See src/tests/kernel/h_getprocpath.c for an example use.

That's a good idea. I will send a patch upstream, hopefully for
inclusion in Go 1.22.

-- 
Benny


Home | Main Index | Thread Index | Old Index