Skip to content

fix(verify): drop --mount-path, note Apple Silicon build#100

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

fix(verify): drop --mount-path, note Apple Silicon build#100
dev-jodee merged 1 commit into
mainfrom
fix/verify-mainnet-apple-silicon

Conversation

@dev-jodee
Copy link
Copy Markdown
Collaborator

Summary

  • Remove --mount-path program from the verify-mainnet justfile recipe. Cargo.lock lives at the workspace root, not in program/, so solana-verify fails pre-flight with Missing Cargo.lock file. Mount the repo root (as CI's verifiable build does) and select the program via --library-name.
  • Add a recipe note that local verification on Apple Silicon requires Docker/Colima Rosetta + DOCKER_DEFAULT_PLATFORM=linux/amd64. solana-verify pins Solana 3.1.10 to an amd64-only image and runs docker run with no --platform, so the SBF build fails compiling getrandom under arm64 emulation otherwise.

Test Plan

  • On Apple Silicon: enable Rosetta, export DOCKER_DEFAULT_PLATFORM=linux/amd64, run solana-verify verify-from-repo (without --remote) against the program — builds clean, getrandom compiles.

--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 Building Building Preview May 29, 2026 3:22pm

Request Review

@dev-jodee dev-jodee merged commit 6b55255 into main May 29, 2026
11 checks passed
@dev-jodee dev-jodee deleted the fix/verify-mainnet-apple-silicon branch May 29, 2026 15:25
@dev-jodee dev-jodee restored the fix/verify-mainnet-apple-silicon branch May 29, 2026 18:01
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