1 KiB
1 KiB
Task B4: Pass patches through the build entry points
Files:
- Modify:
local/build-one.R:99-119(thebuild_binary_packagecall) - Modify:
local/build-all.R:125-145(thebuild_binary_packagecall)
Interfaces:
-
Consumes: the new bincraft
patchesargument (Phase A) andlocal/patches/. -
Produces: both entry points pass
patches = "local/patches". -
Step 1: Edit
local/build-one.R
In the bincraft::build_binary_package( call, add as a new argument (e.g. after archive = TRUE,):
patches = "local/patches",
- Step 2: Edit
local/build-all.R
In the bincraft::build_binary_package( call, add:
patches = "local/patches",
- Step 3: Verify the scripts still parse
Run: Rscript -e 'invisible(parse("local/build-one.R")); invisible(parse("local/build-all.R")); cat("parse ok\n")'
Expected: parse ok.
- Step 4: Commit
git add local/build-one.R local/build-all.R
git commit -m "feat(patches): pass patch registry to bincraft build calls"