Skip to content

Commit 482b8d3

Browse files
committed
chore: rewrite go module path to fxtun.dev during sync
1 parent a9329ee commit 482b8d3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/sync-public.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ git filter-repo \
2121
--path-glob 'web/public/*.txt' \
2222
--force
2323

24+
# Rewrite Go module path for public repo
25+
OLD_MODULE="github.com/mephistofox/fxtunnel"
26+
NEW_MODULE="github.com/mephistofox/fxtun.dev"
27+
find . -name '*.go' -o -name 'go.mod' | xargs sed -i "s|${OLD_MODULE}|${NEW_MODULE}|g"
28+
git add -A && git commit -m "chore: rewrite module path to ${NEW_MODULE}" --allow-empty
29+
2430
# Create repo if it doesn't exist
2531
gh repo view "$PUBLIC_REPO" &>/dev/null || \
2632
gh repo create "$PUBLIC_REPO" --public --description "$DESCRIPTION"

0 commit comments

Comments
 (0)