Skip to content

fix(verify): add verify-local recipe and Apple Silicon build notes#101

Merged
dev-jodee merged 2 commits into
mainfrom
fix/verify-mainnet-apple-silicon
May 29, 2026
Merged

fix(verify): add verify-local recipe and Apple Silicon build notes#101
dev-jodee merged 2 commits into
mainfrom
fix/verify-mainnet-apple-silicon

Conversation

@dev-jodee
Copy link
Copy Markdown
Collaborator

Summary

  • Add just verify-local for a local verifiable build of the program library only, scoped via --library-name rewards_program.
  • A bare solana-verify build SBF-compiles the whole workspace; tests/integration-tests and clients/rust pull getrandom 0.2.17, which has no target_os = "solana" backend and fails cargo build-sbf ("target is not supported").
  • Also: drop --mount-path from verify-mainnet and note Apple Silicon local-build requirements (DOCKER_DEFAULT_PLATFORM=linux/amd64, amd64-only verify image).

Test Plan

  • DOCKER_DEFAULT_PLATFORM=linux/amd64 just verify-local → builds the program lib, no getrandom error.

--mount-path program pointed at the program dir, but Cargo.lock lives at
the workspace root, so solana-verify failed pre-flight with "Missing
Cargo.lock". Mount the repo root (as CI's build-verified does) and select
the program via --library-name.

Document the Rosetta / DOCKER_DEFAULT_PLATFORM=linux/amd64 requirement for
local verification on Apple Silicon, where the amd64-only verify image
otherwise fails compiling getrandom for the SBF target.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
solana-rewards-program Ready Ready Preview, Comment May 29, 2026 6:08pm

Request Review

Bare solana-verify build SBF-compiles the whole workspace; clients/tests pull getrandom 0.2.17 which has no target_os=solana backend and fails cargo build-sbf. Scope to the program lib via --library-name.
@dev-jodee dev-jodee force-pushed the fix/verify-mainnet-apple-silicon branch from aea1926 to 69875e9 Compare May 29, 2026 18:08
@dev-jodee dev-jodee merged commit 68cba3c into main May 29, 2026
10 of 11 checks passed
@dev-jodee dev-jodee deleted the fix/verify-mainnet-apple-silicon branch May 29, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant