program-examples icon indicating copy to clipboard operation
program-examples copied to clipboard

native/pinocchio examples: deploy script points at program.so, which the build never produces

Open MarkFeder opened this issue 4 weeks ago • 0 comments

The deploy npm script and cicd.sh in the single-program native and Pinocchio examples run:

solana program deploy ./program/target/so/program.so

cargo build-sbf --sbf-out-dir=./program/target/so names the artifact after the crate (e.g. transfer_tokens_program.so), so program.so never exists and the documented deploy step fails with "No such file". CI doesn't run deploy, which is why it went unnoticed.

Proposed fix: deploy ./program/target/so/*.so, which resolves to the single artifact in each of these examples. Multi-program examples and the asm example are left alone. Implementation is ready in #702.

MarkFeder avatar Nov 04 '26 18:11 MarkFeder