Replace glide with Go modules (#544)

* And attempt to build with modules and remove glide
* new tools.go file to get code-generator dependency + updated codegen + remove Glide files and update docs
This commit is contained in:
Dmitry Dolgov
2019-10-02 16:18:55 +02:00
committed by Felix Kunde
parent f0e29060b1
commit baae1887b3
21 changed files with 487 additions and 400 deletions
+4 -4
View File
@@ -78,8 +78,8 @@ scm-source.json: .git
echo '{\n "url": "git:$(GITURL)",\n "revision": "$(GITHEAD)",\n "author": "$(USER)",\n "status": "$(GITSTATUS)"\n}' > scm-source.json
tools:
@go get -u honnef.co/go/tools/cmd/staticcheck
@go get -u github.com/Masterminds/glide
GO111MODULE=on go get -u honnef.co/go/tools/cmd/staticcheck
GO111MODULE=on go get k8s.io/client-go@kubernetes-1.16.0
fmt:
@gofmt -l -w -s $(DIRS)
@@ -89,11 +89,11 @@ vet:
@staticcheck $(PKG)
deps:
@glide install --strip-vendor
GO111MODULE=on go mod vendor
test:
hack/verify-codegen.sh
@go test ./...
@go test ./pkg/...
e2e: docker # build operator image to be tested
cd e2e; make tools test clean