Use vendor tree to build binaries.
@@ -10,9 +10,9 @@ versionpath?=github.com/percona/percona-backup-mongodb/version
LDFLAGS= -X $(versionpath).version=$(VERSION) -X $(versionpath).gitCommit=$(GITCOMMIT) -X $(versionpath).gitBranch=$(GITBRANCH) -X $(versionpath).buildTime=$(BUILDTIME) -X $(versionpath).version=$(VERSION)
build-pbm:
- GOOS=$(GOOS) go build -ldflags="$(LDFLAGS)" -o ./bin/pbm ./cmd/pbm
+ GOOS=$(GOOS) go build -ldflags="$(LDFLAGS)" -mod=vendor -o ./bin/pbm ./cmd/pbm
build-agent:
- GOOS=$(GOOS) go build -ldflags="$(LDFLAGS)" -o ./bin/pbm-agent ./cmd/pbm-agent
+ GOOS=$(GOOS) go build -ldflags="$(LDFLAGS)" -mod=vendor -o ./bin/pbm-agent ./cmd/pbm-agent
build: build-pbm build-agent
install-pbm:
