Skip to content

Commit ed405ce

Browse files
committed
fix(repo-url): canonical clone target is MiOS.git (case-corrected)
Companion to mios-bootstrap's repo-URL fix. The operator's Pass-2 Phase-2 in mios-bootstrap was failing because git refused the 301 redirect from mios.git to MiOS.git on fetch. Hardcode the canonical case here too, in every load-bearing fetcher: * usr/libexec/mios/mios-build-driver -- in-distro clone fallback * automation/lib/globals.sh -- $MIOS_REPO_URL bash default * automation/lib/globals.ps1 -- $MIOS_REPO_URL pwsh default * usr/bin/mios-pull -- mios-pull's fetch source Doc strings in mios.toml / profile.toml / *.md / knowledge graphs stay as-is because GitHub's HTTP redirect serves docs / browser hits fine; only the smart-HTTP git fetch path was broken on Git 2.54.0.
1 parent 531d94b commit ed405ce

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

automation/lib/globals.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ $script:MIOS_HERMES_URL = if ($env:MIOS_HERMES_URL) { $env:MIOS_HERMES_URL }
9696
$script:MIOS_WEBUI_URL = if ($env:MIOS_WEBUI_URL) { $env:MIOS_WEBUI_URL } else { "http://localhost:$($script:MIOS_PORT_WEBUI)/" }
9797

9898
# ── REPOS ────────────────────────────────────────────────────────────
99-
$script:MIOS_REPO_URL = if ($env:MIOS_REPO_URL) { $env:MIOS_REPO_URL } else { 'https://github.com/mios-dev/mios.git' }
99+
$script:MIOS_REPO_URL = if ($env:MIOS_REPO_URL) { $env:MIOS_REPO_URL } else { 'https://github.com/mios-dev/MiOS.git' }
100100
$script:MIOS_BOOTSTRAP_REPO_URL = if ($env:MIOS_BOOTSTRAP_REPO_URL) { $env:MIOS_BOOTSTRAP_REPO_URL } else { 'https://github.com/mios-dev/mios-bootstrap.git' }
101101
$script:MIOS_LOCAL_FORGE_REPO = if ($env:MIOS_LOCAL_FORGE_REPO) { $env:MIOS_LOCAL_FORGE_REPO } else { "http://localhost:$($script:MIOS_PORT_FORGE_HTTP)/mios/mios.git" }
102102

automation/lib/globals.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export MIOS_AI_ENDPOINT MIOS_FORGE_URL MIOS_COCKPIT_URL MIOS_OLLAMA_URL
137137
export MIOS_SEARXNG_URL MIOS_HERMES_URL MIOS_WEBUI_URL
138138

139139
# ── REPOS ────────────────────────────────────────────────────────────
140-
: "${MIOS_REPO_URL:=https://github.com/mios-dev/mios.git}"
140+
: "${MIOS_REPO_URL:=https://github.com/mios-dev/MiOS.git}"
141141
: "${MIOS_BOOTSTRAP_REPO_URL:=https://github.com/mios-dev/mios-bootstrap.git}"
142142
: "${MIOS_LOCAL_FORGE_REPO:=http://localhost:${MIOS_PORT_FORGE_HTTP}/mios/mios.git}"
143143
export MIOS_REPO_URL MIOS_BOOTSTRAP_REPO_URL MIOS_LOCAL_FORGE_REPO

usr/bin/mios-pull

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fi
6464

6565
# /etc/profile.d/mios-env.sh layers vendor/host/user mios.toml into env
6666
# vars before login shells run; we honor that here without re-parsing TOML.
67-
MIOS_REPO_URL="${MIOS_REPO_URL:-https://github.com/mios-dev/mios.git}"
67+
MIOS_REPO_URL="${MIOS_REPO_URL:-https://github.com/mios-dev/MiOS.git}"
6868
MIOS_BOOTSTRAP_REPO_URL="${MIOS_BOOTSTRAP_REPO_URL:-https://github.com/mios-dev/mios-bootstrap.git}"
6969

7070
C_R=$'\033[0m'; C_B=$'\033[1m'; C_GRN=$'\033[32m'; C_YLW=$'\033[33m'; C_GRY=$'\033[90m'

usr/libexec/mios/mios-build-driver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ elif [[ -d "$WORKDIR/mios/.git" ]]; then
7676
else
7777
_log "MiOS repo not found -- cloning to $WORKDIR/mios"
7878
mkdir -p "$WORKDIR/mios"
79-
git clone --depth=1 https://github.com/mios-dev/mios.git "$WORKDIR/mios" \
79+
git clone --depth=1 https://github.com/mios-dev/MiOS.git "$WORKDIR/mios" \
8080
2>&1 | tee -a "$LOG_FILE" \
8181
|| _fail "git clone of mios.git failed -- check network connectivity"
8282
MIOS_REPO="$WORKDIR/mios"

0 commit comments

Comments
 (0)