Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.05 KB

bazel.md

File metadata and controls

43 lines (30 loc) · 1.05 KB

Build with Bazel

Building with bazel is currently experimental. Automanaged BUILD rules have the tag "automanaged" and are maintained by gazel. Instructions for installing bazel can be found here.

To build docker images for the components, run:

$ bazel build //build-tools/...

To run many of the unit tests, run:

$ bazel test //cmd/... //build-tools/... //pkg/... //federation/... //plugin/...

To update automanaged build files, run:

$ ./hack/update-bazel.sh

To update a single build file, run:

$ # get gazel
$ go get -u github.com/mikedanese/gazel
$ # .e.g. ./pkg/kubectl/BUILD
$ gazel ./pkg/kubectl

Updating BUILD file for a package will be required when:

  • Files are added to or removed from a package
  • Import dependencies change for a package

Analytics