mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
Migrate from dep to go module
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
a9174dd953
commit
d5a0606c33
10
Makefile
10
Makefile
@ -39,13 +39,13 @@ endif
|
||||
|
||||
all: cephcsi
|
||||
|
||||
test: go-test static-check dep-check
|
||||
test: go-test static-check mod-check
|
||||
|
||||
go-test:
|
||||
./scripts/test-go.sh
|
||||
|
||||
dep-check:
|
||||
dep check
|
||||
mod-check:
|
||||
go mod verify
|
||||
|
||||
static-check:
|
||||
./scripts/lint-go.sh
|
||||
@ -57,8 +57,8 @@ func-test:
|
||||
|
||||
.PHONY: cephcsi
|
||||
cephcsi:
|
||||
if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi
|
||||
GOOS=linux GOARCH=$(GOARCH) go build -a -ldflags '$(LDFLAGS)' -o _output/cephcsi ./cmd/
|
||||
if [ ! -d ./vendor ]; then (go mod tidy && go mod vendor); fi
|
||||
GOOS=linux GOARCH=$(GOARCH) go build -mod vendor -a -ldflags '$(LDFLAGS)' -o _output/cephcsi ./cmd/
|
||||
|
||||
image-cephcsi: cephcsi
|
||||
cp _output/cephcsi deploy/cephcsi/image/cephcsi
|
||||
|
Reference in New Issue
Block a user