From 04a27bef6f2c96251161d63761617542ddc762bc Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 16 Apr 2018 10:11:55 -0700 Subject: [PATCH] os/user: fix build on darwin with "osusergo" build tag Fixes #24841 Updates #24845 Change-Id: Ia7e2deefe64c12ee8a76ce6ed9f9e003e912b161 Reviewed-on: https://go-review.googlesource.com/107299 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/os/user/getgrouplist_darwin.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/user/getgrouplist_darwin.go b/src/os/user/getgrouplist_darwin.go index 935c6de942..e8fe26c47f 100644 --- a/src/os/user/getgrouplist_darwin.go +++ b/src/os/user/getgrouplist_darwin.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build cgo,!osusergo + package user /* -- 2.50.0