I'm running into an error in `emails.go` when buil...
# kolide
s
I'm running into an error in
emails.go
when building
fleetctl
on Mac OS:
Copy code
$ make fleetctl
mkdir -p build/linux
mkdir -p build/darwin
go build -i -o build/fleetctl -ldflags " -X <http://github.com/kolide/kit/version.appName=fleetctl|github.com/kolide/kit/version.appName=fleetctl> -X <http://github.com/kolide/kit/version.version=2.4.0-6-gb524d813-dirty|github.com/kolide/kit/version.version=2.4.0-6-gb524d813-dirty> -X <http://github.com/kolide/kit/version.branch=master|github.com/kolide/kit/version.branch=master> -X <http://github.com/kolide/kit/version.revision=b524d813ca7ee2935ddc0f0ea86d0bd60fc35888|github.com/kolide/kit/version.revision=b524d813ca7ee2935ddc0f0ea86d0bd60fc35888> -X <http://github.com/kolide/kit/version.buildDate=2019-12-17T23:42:10Z|github.com/kolide/kit/version.buildDate=2019-12-17T23:42:10Z> -X <http://github.com/kolide/kit/version.buildUser=seren|github.com/kolide/kit/version.buildUser=seren> -X <http://github.com/kolide/kit/version.goVersion=go1.13.4|github.com/kolide/kit/version.goVersion=go1.13.4>" ./cmd/fleetctl
# <http://github.com/kolide/fleet/server/kolide|github.com/kolide/fleet/server/kolide>
server/kolide/emails.go:93:23: undefined: Asset
make: *** [fleetctl] Error 2
Has anyone run into this?
z
You need to
make generate
s
Thanks. Rookie error. For anyone searching, https://github.com/kolide/fleet/blob/master/docs/development/building-the-code.md has pretty much what you need. Roughly the commands to start from scratch on Mac OS are:
Copy code
brew install go-lang go-bindata yarn webpack node.js docker
make deps
make generate
make fleetctl  # or make build if you want the fleet binary as well
c
the first u need to install go-bindata after instal packages require