Remove go get go-bindata from generate.go

This mades the build impossible offline (as when doing a go generate it
was trying to go get something)

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2015-11-01 23:00:21 +01:00
parent ddceefa4e1
commit ae73d08d67
3 changed files with 2 additions and 1 deletions

View file

@ -85,6 +85,7 @@ You need either [Docker](https://github.com/docker/docker) and `make`, or `go` a
#### Setting up your `go` environment #### Setting up your `go` environment
- You need `go` v1.5 - You need `go` v1.5
- You need to set `export GO15VENDOREXPERIMENT=1` environment variable - You need to set `export GO15VENDOREXPERIMENT=1` environment variable
- You need `go-bindata` to be able to use `go generate` command (needed to build) : `go get github.com/jteeuwen/go-bindata/...`.
- If you clone Træfɪk into something like `~/go/src/github.com/traefik`, your `GOPATH` variable will have to be set to `~/go`: export `GOPATH=~/go`. - If you clone Træfɪk into something like `~/go/src/github.com/traefik`, your `GOPATH` variable will have to be set to `~/go`: export `GOPATH=~/go`.
#### Using `Docker` and `Makefile` #### Using `Docker` and `Makefile`

View file

@ -3,6 +3,7 @@ FROM golang:1.5
RUN go get github.com/Masterminds/glide RUN go get github.com/Masterminds/glide
RUN go get github.com/mitchellh/gox RUN go get github.com/mitchellh/gox
RUN go get github.com/tcnksm/ghr RUN go get github.com/tcnksm/ghr
RUN go get github.com/jteeuwen/go-bindata/...
# Which docker version to test on # Which docker version to test on
ENV DOCKER_VERSION 1.6.2 ENV DOCKER_VERSION 1.6.2

View file

@ -2,7 +2,6 @@
Copyright Copyright
*/ */
//go:generate go get github.com/jteeuwen/go-bindata/...
//go:generate rm -vf gen.go //go:generate rm -vf gen.go
//go:generate go-bindata -o gen.go static/... templates/... //go:generate go-bindata -o gen.go static/... templates/...