Update telegram-approval-join submodule and apply patches

This commit is contained in:
Astra 2026-03-09 20:59:57 +00:00
parent 655276d1f9
commit b5fc6c0c1a
8 changed files with 13 additions and 13 deletions

View file

@ -42,13 +42,13 @@ rsync -a --stats --exclude='.git' --exclude='internal/telegram-approval-join' \
sed -i '/^scripts\/$/d' "$ROOT_DIR/.gitignore"
# ── 3. Rewrite the Go module path inside the copied source ────────────────────
# Change the module from telegram-approval-join to telegram-approval-join-nuzzles
# Change the module from telegram-approval-join to telegram-join-approval-nuzzles
echo "→ Rewriting module path in go.mod ..."
sed -i "s|^module git\.zio\.sh/astra/telegram-approval-join|module git.zio.sh/astra/telegram-approval-join-nuzzles|" "$ROOT_DIR/go.mod"
sed -i "s|^module git\.zio\.sh/astra/telegram-approval-join|module git.zio.sh/astra/telegram-join-approval-nuzzles|" "$ROOT_DIR/go.mod"
# Fix all import references in the copied source
echo "→ Rewriting import paths in .go files ..."
find "$ROOT_DIR" -name '*.go' -not -path "*/telegram-approval-join/*" | xargs sed -i 's|git\.zio\.sh/astra/telegram-approval-join|git.zio.sh/astra/telegram-approval-join-nuzzles|g'
find "$ROOT_DIR" -name '*.go' -not -path "*/telegram-approval-join/*" | xargs sed -i 's|git\.zio\.sh/astra/telegram-approval-join|git.zio.sh/astra/telegram-join-approval-nuzzles|g'
# ── 4. Apply string patch ────────────────────────────────────────────
if [[ -f "$PATCH_FILE" ]]; then