title | menu_order |
---|---|
Building Weave Flux |
80 |
Ensure the repository is checked out into $GOPATH/src/github.com/weaveworks/flux. Then, from the root,
$ gvt restore
# .. time passes ..
$ make
This makes Docker images, and installs binaries to $GOPATH/bin.
$ go test ./...
Note: In order to run the NATS message bus tests (the message bus that connects fluxctl -> fluxsvc -> nats -> fluxsvc -> fluxd) you need to have a running gnatsd instance.
We use gvt to manage vendored dependencies. Note that we do not check in the vendor folder.
To get all the dependencies put in the vendor/
folder, use
$ go get -u github.com/FiloSottile/gvt # install gvt if you don't have it
$ gvt restore
To add dependencies, use
$ gvt fetch <dependency>
gvt
does not discover dependencies for you, but it will add them
recursively; so, it should be sufficient to just add packages you
import.