mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 06:43:48 +02:00
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:
committed by
Felix Kunde
parent
f0e29060b1
commit
baae1887b3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user