[GH-ISSUE #4460] [Issue]: Windows dependency validation fails after successful pnpm install #2423

Closed
opened 2026-10-21 05:48:05 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Promansis on GitHub.

Summary

On Windows, the workspace dependency validator reports that dependencies matching pnpm-lock.yaml are missing or stale even after pnpm install completes successfully. This causes pnpm dev to exit and causes the launcher scripts to reinstall dependencies unnecessarily.

Expected behavior

After a successful pnpm install, workspace dependency validation should pass and pnpm dev --host should start normally. The launcher scripts should not reinstall dependencies on every startup.

Actual behavior

pnpm install completes successfully:

Lockfile is up to date, resolution step is skipped
Already up to date
Done in 681ms using pnpm v10.33.2

But pnpm dev --host reports:

[dev] Workspace dependencies are missing or stale: workspace dependencies matching pnpm-lock.yaml. Synchronizing...

After running another successful install, validation still fails:

Workspace dependency validation still fails after pnpm install. Missing: workspace dependencies matching pnpm-lock.yaml

The package and native-binding checks do not report errors.

Steps to reproduce

  1. Check out the Engine staging branch on Windows.
  2. Run pnpm install.
  3. Run pnpm dev --host.
  4. Allow the automatic install to complete.
  5. Observe that workspace dependency validation still fails.

Environment

  • Marinara Engine version: 2.4.1
  • Install type: source
  • OS + version: Windows, exact version not provided
  • Browser or app shell: Not applicable; failure occurs during CLI startup

Logs, screenshots, or video

PS C:\Ai\dev\Marinara-Engine> pnpm install
Scope: all 4 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
Done in 681ms using pnpm v10.33.2

PS C:\Ai\dev\Marinara-Engine> pnpm dev --host
[dev] Workspace dependencies are missing or stale: workspace dependencies matching pnpm-lock.yaml. Synchronizing...
...
Done in 695ms using pnpm v10.33.2
Workspace dependency validation still fails after pnpm install. Missing: workspace dependencies matching pnpm-lock.yaml

Additional context

scripts/check-workspace-install.mjs compares pnpm-lock.yaml and node_modules/.pnpm/lock.yaml byte-for-byte. The likely cause is that Git checks out the tracked lockfile with CRLF on Windows while pnpm writes the virtual-store lockfile with LF. The lockfiles are semantically identical, but Buffer.equals() treats the different line endings as a mismatch.

The same validator is used by pnpm dev, start.bat, start.sh, and start-termux.sh. The Windows failure causes pnpm dev to exit and can cause repeated dependency reinstalls through the launchers.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Aug 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4460 Originally assigned to: @Promansis on GitHub. ## Summary On Windows, the workspace dependency validator reports that dependencies matching `pnpm-lock.yaml` are missing or stale even after `pnpm install` completes successfully. This causes `pnpm dev` to exit and causes the launcher scripts to reinstall dependencies unnecessarily. ## Expected behavior After a successful `pnpm install`, workspace dependency validation should pass and `pnpm dev --host` should start normally. The launcher scripts should not reinstall dependencies on every startup. ## Actual behavior `pnpm install` completes successfully: ```text Lockfile is up to date, resolution step is skipped Already up to date Done in 681ms using pnpm v10.33.2 ``` But `pnpm dev --host` reports: ```text [dev] Workspace dependencies are missing or stale: workspace dependencies matching pnpm-lock.yaml. Synchronizing... ``` After running another successful install, validation still fails: ```text Workspace dependency validation still fails after pnpm install. Missing: workspace dependencies matching pnpm-lock.yaml ``` The package and native-binding checks do not report errors. ## Steps to reproduce 1. Check out the Engine `staging` branch on Windows. 2. Run `pnpm install`. 3. Run `pnpm dev --host`. 4. Allow the automatic install to complete. 5. Observe that workspace dependency validation still fails. ## Environment - Marinara Engine version: 2.4.1 - Install type: source - OS + version: Windows, exact version not provided - Browser or app shell: Not applicable; failure occurs during CLI startup ## Logs, screenshots, or video ```text PS C:\Ai\dev\Marinara-Engine> pnpm install Scope: all 4 workspace projects Lockfile is up to date, resolution step is skipped Already up to date Done in 681ms using pnpm v10.33.2 PS C:\Ai\dev\Marinara-Engine> pnpm dev --host [dev] Workspace dependencies are missing or stale: workspace dependencies matching pnpm-lock.yaml. Synchronizing... ... Done in 695ms using pnpm v10.33.2 Workspace dependency validation still fails after pnpm install. Missing: workspace dependencies matching pnpm-lock.yaml ``` ## Additional context `scripts/check-workspace-install.mjs` compares `pnpm-lock.yaml` and `node_modules/.pnpm/lock.yaml` byte-for-byte. The likely cause is that Git checks out the tracked lockfile with CRLF on Windows while pnpm writes the virtual-store lockfile with LF. The lockfiles are semantically identical, but `Buffer.equals()` treats the different line endings as a mismatch. The same validator is used by `pnpm dev`, `start.bat`, `start.sh`, and `start-termux.sh`. The Windows failure causes `pnpm dev` to exit and can cause repeated dependency reinstalls through the launchers. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:48:05 +07:00
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#2423
No description provided.