go: os/user: TestGroupIds fails on windows 10

What version of Go are you using (go version)?

TIP

Does this issue reproduce with the latest release?

No

What operating system and processor architecture are you using (go env)?

set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\TobiasKohlbau\AppData\Local\go-build set GOEXE=.exe set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOOS=windows set GOPATH=C:
set GORACE= set GOROOT=C:\Go set GOTMPDIR= set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64 set GCCGO=gccgo set CC=gcc set CXX=g++ set CGO_ENABLED=0 set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\TOBIAS~1\AppData\Local\Temp\go-build684014806=/tmp/go-build -gno-record-gcc-switches

What did you do?

Build latest master from source.

What did you expect to see?

Test succeed.

What did you see instead?

--- FAIL: TestGroupIds (0.01s)
    user_test.go:155: &{Uid:${UID} Gid:${GID} Username:AzureAD\TobiasKohlbau Name:TobiasKohlbau HomeDir:C:\Users\TobiasKohlbau }.GroupIds(): The user name could not be found.
FAIL
FAIL    os/user 3.625s

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 22 (13 by maintainers)

Most upvoted comments

I’ve tried to compile the latest tip on another computer at work today. This computer was connected to the same AzureAD but with a different user. At this machine the tests succeeded and no error was thrown.

As I’m quit new at this company maybe my account is missing some information or I’ve screwed up something on my and. If I find some time on the weekend I will try to find/solve the issue on my pc and will report back what caused the trouble.

For now I will close this issue as it looks like the error is on my end. Thanks for your help @neolit123.