Repository navigation
Start the fake server through a symlink or a path with a space. - #1274
Merged
calledtoconstruct merged 1 commit intoDec 5, 2026
Merged
calledtoconstruct merged 1 commit into
calledtoconstruct merged 1 commit into
Conversation
The direct-run check compared a percent-encoded URL with the path as typed, so a checkout in a folder with a space, or reached through a symlink, exited 0 and printed nothing. The helper already resolves the real path. The stand-in backend now does the same. Fixes MyOwnDataCenter#618 Co-Authored-By: Grok 4.7
Collaborator
Author
|
Thank you @nixfred. The fake server now starts through a symlink or a path with a space. The helper already did. Merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
node test/fake-omarchyd.mjsstarts when the checkout path contains a space or is reached through a symlink. Before, that comparison failed and the process exited 0 with no output. The helper already had this fix.Fixes #618.
How you tested it
npm run typecheck,npm run buildandnpm testpasstest/fake-direct-run.test.mjsandtest/helper-disk-safety.test.mjspassed (6 tests). The new test starts the fake server through a symlink and through a directory named "sp ace", then stops it. Fullnpm test, typecheck, and build were not run. This does not change the helper.Anything to know
Version and What's New are unchanged.
Note
Low Risk
Test-only fake server and a new integration test; no production app, helper, or install path changes.
Overview
Fixes standalone startup of
test/fake-omarchyd.mjswhen you invoke it through a symlink or a path that contains a space. The oldimport.meta.url === file://${process.argv[1]}check often failed (silent exit 0), sonode test/fake-omarchyd.mjsnever booted the test server in those layouts.Detection now goes through a
ranAsMain()helper (preferringimport.meta.mainwhen present, otherwise comparingrealpathSyncofprocess.argv[1]to the script’s resolved path viafileURLToPath(import.meta.url)), matching the approach already used in the helper.Adds
test/fake-direct-run.test.mjs, which spawns the fake through a symlink and through a directory namedsp aceand asserts the expected startup line is printed.Reviewed by Cursor Bugbot for commit 6739abf. Bugbot is set up for automated code reviews on this repo. Configure here.