You will need to install
- golang
- protobuf
- dep
- protoc-gen-go
brew install dep golang jq protobuf shellcheck
go get -u github.com/golang/protobuf/protoc-gen-go
go generate ./...
go build ./...
go test ./...
To generate the deepcopy functions, clientset, listers and informers, run the following commands:
go install ./vendor/k8s.io/kube-openapi/cmd/openapi-gen
GOPATH=<path to go base> ./scripts/update-codegen.sh
To regenerate the deepcopy code need for our CRD code, run the following commands:
$GOPATH/bin/deepcopy-gen --input-dirs ./netmesh/model/netmesh --go-header-file conf/boilerplate.txt --bounding-dirs ./netmesh/model/netmesh -O zz_generated.deepcopy -o $GOPATH/src
The travis.yml file in the project provides the canonical source on how to build in case this file is not properly maintained.