slackhq / go-audit

go-audit is an alternative to the auditd daemon that ships with many distros

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build goaudit, audit.go:226: undefined: user.LookupGroup

lionaneesh opened this issue · comments

Hey. I followed the steps on your github readme. I cannot build due to this error:

some:~/goshit/src/github.com/slackhq/go-audit$ make
govendor sync
go build
# github.com/slackhq/go-audit
./audit.go:226: undefined: user.LookupGroup
Makefile:2: recipe for target 'bin' failed
make: *** [bin] Error 2

I tried to debug it, its probably happening because go cannot import os/user package. Can someone please help me with this?

Reproducible in:

go-audit version: GIT head
OS version(s): Ubuntu 16.04 (Xenial)
Go version: go1.6.2 linux/amd64

I think the go version I am using is outdated.