4 # NOTE: go-alert depends on go-common
6 REPOS=("autofile" "clist" "db" "events" "flowrate" "logger" "process")
12 git commit -m "move all files to common/ to begin repo merge"
14 for repo in "${REPOS[@]}"; do
15 # add and fetch the repo
16 git remote add -f "$repo" "https://github.com/tendermint/go-${repo}"
18 # merge master and move into subdir
19 git merge "$repo/master" --no-edit
21 if [[ "$repo" != "flowrate" ]]; then
26 set +e # these might not exist
28 git mv README "$repo/README.md"
29 git mv Makefile "$repo/Makefile"
34 git commit -m "merge go-${repo}"
39 go get github.com/ebuchman/got
40 got replace "tendermint/go-common" "tendermint/go-common/common"
41 for repo in "${REPOS[@]}"; do
43 if [[ "$repo" != "flowrate" ]]; then
44 got replace "tendermint/go-${repo}" "tendermint/go-common/${repo}"
46 got replace "tendermint/go-${repo}/flowrate" "tendermint/go-common/flowrate"
51 git commit -m "update import paths"
53 # TODO: change any paths in non-Go files