From 41a72179862740f31aa877e466a6f2202ebc0ded Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 15 Oct 2015 22:33:59 +0200 Subject: [PATCH] Fix and improve build-from-source instructions. Fixes https://github.com/prometheus/prometheus/issues/1165 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 56d8478a6..333c71737 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,11 @@ To build Prometheus from the source code yourself you need to have a working Go environment with [version 1.5 or greater installed](http://golang.org/doc/install). You can directly use the `go` tool to download and install the `prometheus` -and `promtool` binaries into your `GOPATH`: +and `promtool` binaries into your `GOPATH`. We use Go 1.5's experimental +vendoring feature, so you will also need to set the `GO15VENDOREXPERIMENT=1` +environment variable in this case: - $ go get github.com/prometheus/prometheus/... + $ GO15VENDOREXPERIMENT=1 go get github.com/prometheus/prometheus/cmd/... $ prometheus -config.file=your_config.yml You can also clone the repository yourself and build using `make`: