Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/dist: The OSX build breaks if /usr/sbin is not in the path #13425
On Darwin, it appears that the method of determining whether default GOHOSTARCH setting should be amd64 relies on sysctl. There are use cases where sysctl is not in the users' path. In situations like this, the OSx build of go will break.
For an example, see https://bugs.gentoo.org/show_bug.cgi?id=558368.
The suggested patch for that bug is to hard code the path to /usr/sbin/sysctl in the command.
Before I do that, I'm wondering if you are interested in doing so upstream, or if there is a better way to do this autodetection on OSx?
It might be fine for Gentoo/Alt to carry that patch,
Actually, I think a better solution for Gentoo/Alt
Thanks much for your time. :-)