[GH-ISSUE #5123] [Issue]: start.bat silently skips update checks when .git is absent #2832

Closed
opened 2026-10-21 05:56:29 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5123

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When Marinara Engine is launched from an installation without a .git directory, start.bat silently skips the automatic update check. The engine starts normally, but users receive no indication that updates and the stale-dist check are unavailable.

Expected behavior

The launcher should clearly report that the installation is not a git checkout and that automatic updates are unavailable, then continue starting the current local version.

Actual behavior

The launcher produces no output for the missing .git condition, skips the update check, and starts the engine normally. The stale-dist check is also silently disabled because it relies on git rev-parse.

Steps to reproduce

  1. Take a working Marinara Engine installation and remove or rename its .git directory.
  2. Launch Marinara Engine through the Start Menu shortcut (MarinaraLauncher.exe → start.bat).
  3. Observe that the launcher does not display an update-check message or explain why updates were skipped.

Environment

  • Marinara Engine version: 2.4.1
  • Install type: Not provided
  • OS + version: Windows 11 Pro 26200
  • Browser or app shell: Not provided

Logs, screenshots, or video

Launcher output included: '[OK] pnpm 10.34.5 ready', '[OK] Node.js found: v24.17.0', and 'Starting Marinara Engine on http://0.0.0.0:7860'. No '[..] Checking for updates...' message or explanation for the skipped update check was shown. No screenshots or video provided.

Additional context

Node v24.17.0 and pnpm 10.34.5 were reported. The installation was under %LOCALAPPDATA%. The proposed fix is to print a message such as '[OK] Not a git checkout; automatic updates are unavailable for this install.' before skipping the update path. The issue was reported as present on main and staging as of 2026-08-16.

Discord thread: .GIT update issue
Discord thread link: https://discord.com/channels/1417099416812392641/1538418125551308880
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-08-16T05:24:23.558Z] ChrisDay: Issue 1 — start.bat skips the update check with no output when .git is absent
Environment: Windows 11 Pro 26200 · Node v24.17.0 · pnpm 10.34.5 · Marinara Engine 2.4.1, installed under %LOCALAPPDATA%

What happens
Launching via the Start Menu shortcut (MarinaraLauncher.exe → start.bat) on an install that has no .git directory produces this, and nothing else:

 +==========================================+
 |       Marinara Engine  -  Launcher        |
 +==========================================+
 [..] Aligning pnpm to 10.34.5 via Corepack...
 [OK] pnpm 10.34.5 ready
 [OK] Node.js found:
v24.17.0
 [OK] pnpm 10.34.5 ready
 ==========================================
   Starting Marinara Engine on http://0.0.0.0:7860
The engine starts normally and never updates. There is no indication that an update check was attempted, skipped, or why.

Why
start.bat, the update decision block. Every exit announces itself except one:

if defined SKIP_UPDATE (
    echo  [OK] Skipping update check; starting the current local install.
    goto :skip_update
)
if defined AUTO_UPDATE_DISABLED (
    echo  [OK] Automatic Engine updates disabled by AUTO_UPDATE_ENABLED=false.
    node scripts\check-launcher-update.mjs
    goto :skip_update
)
if not exist ".git" goto :skip_update          <-- silent
echo  [..] Checking for updates...
For comparison, the other outcomes all speak:

condition    output
--skip-update / --no-update    [OK] Skipping update check; starting the current local install.
AUTO_UPDATE_ENABLED=false    [OK] Automatic Engine updates disabled by AUTO_UPDATE_ENABLED=false.
fetch fails    [WARN] Could not check for updates. Continuing with current version.
already current    [OK] Already up to date
updated    [OK] Updated to latest version
no .git    (nothing)
The same absence also silently disables the stale-dist check further down, which shells out to git rev-parse --short=12 HEAD.
[Discord message: https://discord.com/channels/1417099416812392641/1538418125551308880/1538418125551308880]

[2026-08-16T05:24:24.328Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1538418125551308880/1538418128780796008]

[2026-08-16T05:24:35.650Z] ChrisDay: Why it matters
The auto-updater is a git fetch + ff-only merge, so a non-repo install genuinely can't update — that part is correct. The problem is that the only symptom is a version number that never changes. Nothing in the launcher output, and nothing in the app, says the update path is unavailable. An install can sit months behind while the user watches the launcher report success every time.

This is easy to end up in: any copy, restore, or archive extraction that omits hidden directories produces a complete, working, permanently un-updatable install.

Reproduce
Take a working install and rename or remove .git
Launch via start.bat
Note the absence of [..] Checking for updates... and of any explanation
Suggested fix
One line:

if not exist ".git" (
    echo  [OK] Not a git checkout; automatic updates are unavailable for this install.
    goto :skip_update
)
Present on main and staging as of 2026-08-16.
[Discord message: https://discord.com/channels/1417099416812392641/1538418125551308880/1538418176268828684]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5123 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When Marinara Engine is launched from an installation without a .git directory, start.bat silently skips the automatic update check. The engine starts normally, but users receive no indication that updates and the stale-dist check are unavailable. ## Expected behavior The launcher should clearly report that the installation is not a git checkout and that automatic updates are unavailable, then continue starting the current local version. ## Actual behavior The launcher produces no output for the missing .git condition, skips the update check, and starts the engine normally. The stale-dist check is also silently disabled because it relies on git rev-parse. ## Steps to reproduce 1. Take a working Marinara Engine installation and remove or rename its .git directory. 2. Launch Marinara Engine through the Start Menu shortcut (MarinaraLauncher.exe → start.bat). 3. Observe that the launcher does not display an update-check message or explain why updates were skipped. ## Environment - Marinara Engine version: 2.4.1 - Install type: Not provided - OS + version: Windows 11 Pro 26200 - Browser or app shell: Not provided ## Logs, screenshots, or video Launcher output included: '[OK] pnpm 10.34.5 ready', '[OK] Node.js found: v24.17.0', and 'Starting Marinara Engine on http://0.0.0.0:7860'. No '[..] Checking for updates...' message or explanation for the skipped update check was shown. No screenshots or video provided. ## Additional context Node v24.17.0 and pnpm 10.34.5 were reported. The installation was under %LOCALAPPDATA%. The proposed fix is to print a message such as '[OK] Not a git checkout; automatic updates are unavailable for this install.' before skipping the update path. The issue was reported as present on main and staging as of 2026-08-16. Discord thread: .GIT update issue Discord thread link: https://discord.com/channels/1417099416812392641/1538418125551308880 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-08-16T05:24:23.558Z] ChrisDay: Issue 1 — start.bat skips the update check with no output when .git is absent Environment: Windows 11 Pro 26200 · Node v24.17.0 · pnpm 10.34.5 · Marinara Engine 2.4.1, installed under %LOCALAPPDATA% What happens Launching via the Start Menu shortcut (MarinaraLauncher.exe → start.bat) on an install that has no .git directory produces this, and nothing else: +==========================================+ | Marinara Engine - Launcher | +==========================================+ [..] Aligning pnpm to 10.34.5 via Corepack... [OK] pnpm 10.34.5 ready [OK] Node.js found: v24.17.0 [OK] pnpm 10.34.5 ready ========================================== Starting Marinara Engine on http://0.0.0.0:7860 The engine starts normally and never updates. There is no indication that an update check was attempted, skipped, or why. Why start.bat, the update decision block. Every exit announces itself except one: if defined SKIP_UPDATE ( echo [OK] Skipping update check; starting the current local install. goto :skip_update ) if defined AUTO_UPDATE_DISABLED ( echo [OK] Automatic Engine updates disabled by AUTO_UPDATE_ENABLED=false. node scripts\check-launcher-update.mjs goto :skip_update ) if not exist ".git" goto :skip_update <-- silent echo [..] Checking for updates... For comparison, the other outcomes all speak: condition output --skip-update / --no-update [OK] Skipping update check; starting the current local install. AUTO_UPDATE_ENABLED=false [OK] Automatic Engine updates disabled by AUTO_UPDATE_ENABLED=false. fetch fails [WARN] Could not check for updates. Continuing with current version. already current [OK] Already up to date updated [OK] Updated to latest version no .git (nothing) The same absence also silently disables the stale-dist check further down, which shells out to git rev-parse --short=12 HEAD. [Discord message: https://discord.com/channels/1417099416812392641/1538418125551308880/1538418125551308880] [2026-08-16T05:24:24.328Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1538418125551308880/1538418128780796008] [2026-08-16T05:24:35.650Z] ChrisDay: Why it matters The auto-updater is a git fetch + ff-only merge, so a non-repo install genuinely can't update — that part is correct. The problem is that the only symptom is a version number that never changes. Nothing in the launcher output, and nothing in the app, says the update path is unavailable. An install can sit months behind while the user watches the launcher report success every time. This is easy to end up in: any copy, restore, or archive extraction that omits hidden directories produces a complete, working, permanently un-updatable install. Reproduce Take a working install and rename or remove .git Launch via start.bat Note the absence of [..] Checking for updates... and of any explanation Suggested fix One line: if not exist ".git" ( echo [OK] Not a git checkout; automatic updates are unavailable for this install. goto :skip_update ) Present on main and staging as of 2026-08-16. [Discord message: https://discord.com/channels/1417099416812392641/1538418125551308880/1538418176268828684] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:56:29 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 16, 2026):

@SpicyMarinara is taking this issue. A focused draft PR against staging will track the fix.

<!-- gh-comment-id:5306324569 --> @SpicyMarinara commented on GitHub (Aug 16, 2026): @SpicyMarinara is taking this issue. A focused draft PR against `staging` will track the fix.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2832
No description provided.