Fix make generate slowness on Docker for Mac (#1226)

* fix(docker): add .git to the repo. needed for acs-engine version and dev
workflow

* fix(generate): replace slow `go list ...` with `glide novendor`
This commit is contained in:
Sean Knox 2017-08-09 19:19:04 -07:00 коммит произвёл GitHub
Родитель e8b10c76d0
Коммит 4ea84d018b
2 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -1,7 +1,6 @@
./acs-engine
./acs-engine.exe
./_output
./.git
./test/acs-engine-test/acs-engine-test
## autogenerated
./pkg/i18n/translations.go

Просмотреть файл

@ -15,11 +15,7 @@ BINDIR := $(CURDIR)/bin
BINARIES := acs-engine
VERSION := $(shell git rev-parse HEAD)
# this isn't particularly pleasant, but it works with the least amount
# of requirements around $GOPATH. The extra sed is needed because `gofmt`
# operates on paths, go list returns package names, and `go fmt` always rewrites
# which is not what we need to do in the `test_fmt` target.
GOFILES=`go list ./... | grep -v "github.com/Azure/acs-engine/vendor" | sed 's|github.com/Azure/acs-engine|.|g' | grep -v -w '^.$$'`
GOFILES=`glide novendor | xargs go list`
all: build