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:
Родитель
e8b10c76d0
Коммит
4ea84d018b
|
@ -1,7 +1,6 @@
|
|||
./acs-engine
|
||||
./acs-engine.exe
|
||||
./_output
|
||||
./.git
|
||||
./test/acs-engine-test/acs-engine-test
|
||||
## autogenerated
|
||||
./pkg/i18n/translations.go
|
||||
|
|
6
Makefile
6
Makefile
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче