From 70efa081fe8048ede5bd6a5abf35b6f06dc177ef Mon Sep 17 00:00:00 2001 From: defiQUG Date: Sat, 28 Mar 2026 13:40:44 -0700 Subject: [PATCH] Use Gitea as explorer primary and harden wallet metadata --- .gitmodules | 4 ++-- docs/00-meta/SUBMODULE_HYGIENE.md | 11 ++++++----- docs/04-configuration/EXPLORER_MONOREPO_GITEA_PUSH.md | 6 +++--- explorer-monorepo | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.gitmodules b/.gitmodules index d69d63d..2d66073 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,7 +1,7 @@ [submodule "explorer-monorepo"] path = explorer-monorepo - url = https://github.com/Order-of-Hospitallers/chain-138-explorer.git - # Note: If remote repository doesn't exist, this is a local-only submodule + url = https://gitea.d-bis.org/d-bis/explorer-monorepo.git + # Primary integration remote is Gitea; use GitHub only as an optional mirror when available. [submodule "mcp-proxmox"] path = mcp-proxmox url = https://github.com/gilby125/mcp-proxmox.git diff --git a/docs/00-meta/SUBMODULE_HYGIENE.md b/docs/00-meta/SUBMODULE_HYGIENE.md index a218a39..57c52d6 100644 --- a/docs/00-meta/SUBMODULE_HYGIENE.md +++ b/docs/00-meta/SUBMODULE_HYGIENE.md @@ -31,12 +31,13 @@ Stricter than `git status -sb` (fails on any porcelain output). Use after large --- -## explorer-monorepo: Gitea vs GitHub +## explorer-monorepo: Gitea primary, GitHub optional mirror -- **Parent `.gitmodules` URL:** `https://github.com/Order-of-Hospitallers/chain-138-explorer.git` (canonical clone source for fresh submodules). -- **Day-to-day pushes** may go to **Gitea** (`gitea` remote → `https://gitea.d-bis.org/d-bis/explorer-monorepo.git`) when that is the integration remote. +- **Parent `.gitmodules` URL:** `https://gitea.d-bis.org/d-bis/explorer-monorepo.git` (primary clone and integration source). +- **Primary pushes** should go to **Gitea** (`origin` or `gitea` remote → `https://gitea.d-bis.org/d-bis/explorer-monorepo.git`). +- **GitHub** is optional as a mirror only when that repository exists and your team still needs it. -**Keep GitHub in sync** if your team pulls from GitHub only: after pushing to Gitea, push the same branch to `origin` on GitHub (or set up mirroring). If `git push origin master` returns **repository not found**, the GitHub repo may be private under another org/name, or may not exist yet — use **`gitea`** as the integration remote until GitHub access is fixed. +If `git push` to a GitHub mirror returns **repository not found**, treat that as a mirror problem, not the primary integration path. Continue using **Gitea** as the source of truth until a valid GitHub mirror URL is confirmed. **Do not store credentials in remote URLs.** Use SSH (`git@github.com:...`) or HTTPS with a credential helper. If you see a remote whose name or URL embeds a token, remove it and re-add a clean remote: @@ -44,7 +45,7 @@ Stricter than `git status -sb` (fails on any porcelain output). Use after large cd explorer-monorepo git remote -v # git remote remove '' -git remote add origin https://github.com/Order-of-Hospitallers/chain-138-explorer.git +git remote add origin https://gitea.d-bis.org/d-bis/explorer-monorepo.git ``` **Rotate** any token that was ever embedded in a saved URL. diff --git a/docs/04-configuration/EXPLORER_MONOREPO_GITEA_PUSH.md b/docs/04-configuration/EXPLORER_MONOREPO_GITEA_PUSH.md index 31c50ad..c474395 100644 --- a/docs/04-configuration/EXPLORER_MONOREPO_GITEA_PUSH.md +++ b/docs/04-configuration/EXPLORER_MONOREPO_GITEA_PUSH.md @@ -1,7 +1,7 @@ # Explorer Monorepo — Gitea Push **Last Updated:** 2026-02-10 -**Status:** Explorer monorepo is pushed to Gitea. **virtual-banker** is not part of and not referenced by explorer-monorepo; it lives as a separate repo in the projects directory (`/home/intlc/projects/virtual-banker`) and on Gitea as [d-bis/virtual-banker](https://gitea.d-bis.org/d-bis/virtual-banker). +**Status:** Explorer monorepo uses Gitea as its primary integration remote. **virtual-banker** is not part of and not referenced by explorer-monorepo; it lives as a separate repo in the projects directory (`/home/intlc/projects/virtual-banker`) and on Gitea as [d-bis/virtual-banker](https://gitea.d-bis.org/d-bis/virtual-banker). --- @@ -23,7 +23,7 @@ bash scripts/dev-vm/push-all-projects-to-gitea.sh ## Why explorer-monorepo isn’t pushed by the usual script -- **explorer-monorepo** is a **submodule** of the proxmox repo (`explorer-monorepo` → `https://github.com/Order-of-Hospitallers/chain-138-explorer.git`). +- **explorer-monorepo** is a **submodule** of the proxmox repo (`explorer-monorepo` → `https://gitea.d-bis.org/d-bis/explorer-monorepo.git`). - **push-all-projects-to-gitea.sh** only considers **direct children** of `PROJECTS_DIR` (default `/home/intlc/projects`), i.e. sibling repos like `proxmox`, `dbis_core`, not subdirectories/submodules inside proxmox. - So explorer-monorepo is never discovered or pushed by that script. @@ -72,4 +72,4 @@ If the repo is large and the push fails with **HTTP 413**, follow [GITEA_LARGE_P ## After pushing - In Gitea, add labels per [GITEA_ORG_STRUCTURE.md](GITEA_ORG_STRUCTURE.md): e.g. `project/explorer`, `domain/blockchain` / `domain/web` as appropriate. -- To make the proxmox repo point at Gitea for this submodule (optional): update `.gitmodules` and submodule remote to `https://gitea.d-bis.org/d-bis/explorer-monorepo.git` and run `git submodule sync`. +- The proxmox repo now points at Gitea for this submodule by default. After cloning or after remote changes, run `git submodule sync explorer-monorepo` so local submodule config follows `.gitmodules`. diff --git a/explorer-monorepo b/explorer-monorepo index 1e3a3f0..a2555b4 160000 --- a/explorer-monorepo +++ b/explorer-monorepo @@ -1 +1 @@ -Subproject commit 1e3a3f00ef728147eea399aedca01e29269062ec +Subproject commit a2555b41493695cf965af4648f112b84866cc335