Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e616308

Browse files
committed
add restore-import-paths and rewrite-import-paths
1 parent fe1b5c0 commit e616308

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,17 @@ deps:
5959
-go test -v -i ./...
6060

6161

62-
.PHONY: build-cli clean test-short test test-with-flags deps html-coverage
62+
restore-import-paths:
63+
find . -name '*.go' -type f -execdir sed -i '' s#\"github.com/$(shell cd .. && basename "$$(pwd)")/migrate#\"github.com/mattes/migrate#g '{}' \;
64+
65+
66+
rewrite-import-paths:
67+
find . -name '*.go' -type f -execdir sed -i '' s#\"github.com/mattes/migrate#\"github.com/$(shell cd .. && basename "$$(pwd)")/migrate#g '{}' \;
68+
69+
70+
.PHONY: build-cli clean test-short test test-with-flags deps html-coverage \
71+
restore-import-paths rewrite-import-paths
72+
6373
SHELL = /bin/bash
6474
RAND = $(shell echo $$RANDOM)
6575

0 commit comments

Comments
 (0)