-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: bring back the go mod and sum files (#718)
close #661
- Loading branch information
Showing
9 changed files
with
10 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,5 @@ | |
.DS_Store | ||
*/.idea | ||
deps.sh | ||
/go.sum | ||
/go.mod | ||
.idea/ | ||
sync_diff_inspector/config/output/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,30 +31,25 @@ define run_unit_test | |
@make failpoint-enable | ||
@export log_level=error; \ | ||
$(GOTEST) -cover $(1) \ | ||
|| { @make failpoint-disable; exit 1; } | ||
|| { make failpoint-disable; exit 1; } | ||
@make failpoint-disable | ||
endef | ||
|
||
build: prepare version check importer sync_diff_inspector ddl_checker finish | ||
build: version check importer sync_diff_inspector ddl_checker | ||
|
||
|
||
failpoint-enable: tools | ||
tools/bin/failpoint-ctl enable | ||
bin/failpoint-ctl enable | ||
|
||
failpoint-disable: tools | ||
tools/bin/failpoint-ctl disable | ||
bin/failpoint-ctl disable | ||
|
||
tools: | ||
@echo "install tools..." | ||
@cd tools && make | ||
@ls bin/failpoint-ctl || { echo "failpoint-ctl not found, installing..."; GOBIN=$$(pwd)/bin go install github.com/pingcap/failpoint/[email protected]; } | ||
|
||
version: | ||
$(GO) version | ||
|
||
prepare: | ||
cp go.mod1 go.mod | ||
cp go.sum1 go.sum | ||
|
||
importer: | ||
$(GO) build -ldflags '$(LDFLAGS)' -o bin/importer ./importer | ||
|
||
|
@@ -71,7 +66,7 @@ test: version | |
rm -rf /tmp/output | ||
$(call run_unit_test,$(PACKAGES)) | ||
|
||
integration_test: prepare failpoint-enable importer sync_diff_inspector ddl_checker failpoint-disable finish | ||
integration_test: failpoint-enable importer sync_diff_inspector ddl_checker failpoint-disable | ||
@which bin/tidb-server | ||
@which bin/tikv-server | ||
@which bin/pd-server | ||
|
@@ -93,15 +88,7 @@ check: fmt | |
#@echo "golint" | ||
#@ golint ./... 2>&1 | grep -vE '\.pb\.go' | grep -vE 'vendor' | awk '{print} END{if(NR>0) {exit 1}}' | ||
|
||
tidy: | ||
cp go.mod1 go.mod | ||
cp go.sum1 go.sum | ||
tidy: | ||
@$(GO) mod tidy | ||
cp go.mod go.mod1 | ||
cp go.sum go.sum1 | ||
|
||
clean: prepare tidy finish | ||
|
||
finish: | ||
cp go.mod go.mod1 | ||
cp go.sum go.sum1 | ||
clean: tidy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.