From 8313b2a7a7789dc923c017d1f130fda116910fcb Mon Sep 17 00:00:00 2001 From: devops-engineer Date: Thu, 7 May 2026 08:17:58 -0700 Subject: [PATCH] =?UTF-8?q?fix(scripts):=20clone-manifest.sh=20=E2=80=94?= =?UTF-8?q?=20use=20Gitea=20+=20lowercase=20org=20slug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Post-2026-05-06 GitHub-org suspension: scripts/clone-manifest.sh was still pointing at https://github.com/${repo}.git, so the Docker build for workspace-server'\''s platform image fails at: fatal: could not read Username for 'https://github.com': No such device or address with no credentials available in the build container. Fix: clone from https://git.moleculesai.app/${repo}.git instead. manifest.json'\''s repo paths still read 'Molecule-AI/...' (the historic GitHub slug, mixed-case); Gitea lowercases the org component to 'molecule-ai/...'. Lowercase the org segment on the fly with awk so we don'\''t need to rewrite every manifest entry. Local verify: bash -n passes, lowercase transform produces correct Gitea paths, anonymous git clone of one of the manifest plugins over HTTPS to git.moleculesai.app succeeds. Class G in the prod-ship CI sweep — same shape as the github.com ref Harness Replays hits, this is the second instance found. --- scripts/clone-manifest.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/clone-manifest.sh b/scripts/clone-manifest.sh index 18d92424..9d873bed 100755 --- a/scripts/clone-manifest.sh +++ b/scripts/clone-manifest.sh @@ -45,11 +45,18 @@ clone_category() { continue fi - echo " cloning $repo -> $target_dir/$name (ref=$ref)" + # Post-2026-05-06 GitHub-org-suspension: clone from Gitea instead. + # manifest.json paths still read "Molecule-AI/..." (the historic + # github.com slug); Gitea lowercases the org part to "molecule-ai/". + # Lowercase the org segment on the fly so we don't need to rewrite + # every manifest entry. + repo_gitea="$(echo "$repo" | awk -F/ '{ printf "%s", tolower($1); for (i=2; i<=NF; i++) printf "/%s", $i; print "" }')" + + echo " cloning $repo_gitea -> $target_dir/$name (ref=$ref)" if [ "$ref" = "main" ]; then - git clone --depth=1 -q "https://github.com/${repo}.git" "$target_dir/$name" + git clone --depth=1 -q "https://git.moleculesai.app/${repo_gitea}.git" "$target_dir/$name" else - git clone --depth=1 -q --branch "$ref" "https://github.com/${repo}.git" "$target_dir/$name" + git clone --depth=1 -q --branch "$ref" "https://git.moleculesai.app/${repo_gitea}.git" "$target_dir/$name" fi CLONED=$((CLONED + 1)) i=$((i + 1)) -- 2.45.2