Skip to content

Commit 9b2a8f1

Browse files
committed
fix(smol-builder): update hardcoded patch reference to use numbered prefix
Fix build error caused by renaming patches to use numerical prefixes. - Update line 410 in build.mjs to reference 001-socketsecurity_bootstrap_preexec_v24.10.0.template.patch - Previous reference was missing the 001- prefix after patch reorganization - Resolves ENOENT error during bootstrap embedding phase Closes build failure introduced in commit a281c03.
1 parent a281c03 commit 9b2a8f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/node-smol-builder/scripts/build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const ADDITIONS_DIR = join(ROOT_DIR, 'additions')
194194
*
195195
* 2. All addition files (additions/**)
196196
* - Includes headers, source files, tools added to Node.js source tree
197-
* - Example: additions/tools/socketsecurity_macho_decompress
197+
* - Example: additions/003-compression-tools/socketsecurity_macho_decompress
198198
*
199199
* 3. This build script itself (scripts/build.mjs)
200200
* - Changes to build configuration flags invalidate cache
@@ -407,7 +407,7 @@ async function embedSocketSecurityBootstrap() {
407407
getDefaultLogger().log(` ${(finalLoader.length / 1024).toFixed(1)}KB (includes embedded bootstrap)`)
408408

409409
// Copy the minimal patch template to build/patches/ (no placeholder replacement needed).
410-
const minimalPatchTemplatePath = join(PATCHES_DIR, 'socketsecurity_bootstrap_preexec_v24.10.0.template.patch')
410+
const minimalPatchTemplatePath = join(PATCHES_DIR, '001-socketsecurity_bootstrap_preexec_v24.10.0.template.patch')
411411
const buildPatchesDir = join(BUILD_DIR, 'patches')
412412
await mkdir(buildPatchesDir, { recursive: true })
413413

0 commit comments

Comments
 (0)