Skip to content

Commit 4860a0d

Browse files
rename go.mod and go.sum (pingcap#118)
1 parent 66676a8 commit 4860a0d

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
*/*.iml
33
*/.idea
44
deps.sh
5+
go.sum
6+
go.mod

Makefile

+10-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ FILES := $$(find . -name '*.go' -type f | grep -vE 'vendor')
2323
VENDOR_TIDB := vendor/github.com/pingcap/tidb
2424

2525

26-
build: check test importer checker dump_region binlogctl sync_diff_inspector
26+
build: prepare check test importer checker dump_region binlogctl sync_diff_inspector finish
27+
28+
prepare:
29+
cp go.mod1 go.mod
30+
cp go.sum1 go.sum
2731

2832
importer:
2933
$(GO) build -ldflags '$(LDFLAGS)' -o bin/importer ./importer
@@ -57,4 +61,8 @@ check:
5761
#@echo "golint"
5862
#@ golint ./... 2>&1 | grep -vE '\.pb\.go' | grep -vE 'vendor' | awk '{print} END{if(NR>0) {exit 1}}'
5963
@echo "gofmt (simplify)"
60-
@ gofmt -s -l -w $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}'
64+
@ gofmt -s -l -w $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}'
65+
66+
finish:
67+
cp go.mod go.mod1
68+
cp go.sum go.sum1

go.mod go.mod1

File renamed without changes.

go.sum go.sum1

File renamed without changes.

0 commit comments

Comments
 (0)