Skip to content

src: fix --build-sea default executable path#61708

Open
alexsch01 wants to merge 5 commits intonodejs:mainfrom
alexsch01:main
Open

src: fix --build-sea default executable path#61708
alexsch01 wants to merge 5 commits intonodejs:mainfrom
alexsch01:main

Conversation

@alexsch01
Copy link
Contributor

Fixes #61579

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/single-executable

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. single-executable Issues and PRs related to single-executable applications labels Feb 6, 2026
@alexsch01
Copy link
Contributor Author

Just compiled it and it runs as expected

@joyeecheung
Copy link
Member

joyeecheung commented Feb 6, 2026

Thanks for the PR, can you add a test? I think you may need to use child_process.execSync and tweak the path variables a bit to reproduce it with a shell.

@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.73%. Comparing base (ae2ffce) to head (d2f5377).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61708      +/-   ##
==========================================
- Coverage   89.75%   89.73%   -0.02%     
==========================================
  Files         674      674              
  Lines      204416   204424       +8     
  Branches    39285    39282       -3     
==========================================
- Hits       183472   183449      -23     
- Misses      13227    13264      +37     
+ Partials     7717     7711       -6     
Files with missing lines Coverage Δ
src/node_sea_bin.cc 41.72% <100.00%> (ø)

... and 36 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@anonrig anonrig added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Feb 6, 2026
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 6, 2026
@nodejs-github-bot
Copy link
Collaborator


const fixturesDir = fixtures.path('sea', 'basic');
const tempDir = tmpdir.path;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tmpdir.refresh();

Comment on lines +21 to +22
resolve(fixturesDir, 'sea-config.json'),
resolve(tempDir, 'sea-config.json'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resolve(fixturesDir, 'sea-config.json'),
resolve(tempDir, 'sea-config.json'),
fixtures.path('sea-config.json'),
tmpdir.resolve('sea-config.json'),

Comment on lines +26 to +27
resolve(fixturesDir, 'sea.js'),
resolve(tempDir, 'sea.js'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resolve(fixturesDir, 'sea.js'),
resolve(tempDir, 'sea.js'),
fixtures.path('sea.js'),
tmpdir.resolve('sea.js'),


spawnSyncAndAssert(
process.execPath,
['--build-sea', resolve(tempDir, 'sea-config.json')], {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
['--build-sea', resolve(tempDir, 'sea-config.json')], {
['--build-sea', tmpdir.resolve('sea-config.json')], {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. single-executable Issues and PRs related to single-executable applications

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--build-sea NodeJS 25.5.0: Error: Couldn't stat executable node

4 participants