Skip to content

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

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#141
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 failed pre-flight with Missing Cargo.lock file. Mount the repo root (as CI's build-verified action 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: colima start --vz-rosetta (or enable Rosetta in Docker Desktop), export DOCKER_DEFAULT_PLATFORM=linux/amd64, then solana-verify verify-from-repo https://github.com/solana-program/subscriptions --program-id De1egAFMkMWZSN5rYXRj9CAdheBamobVNubTsi9avR44 --library-name subscriptions_program -um — builds clean, getrandom compiles, produces deterministic .so.

--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-subscriptions-program Ready Ready Preview, Comment May 29, 2026 3:20pm

Request Review

@dev-jodee dev-jodee merged commit 930b272 into main May 29, 2026
13 checks passed
@dev-jodee dev-jodee deleted the fix/verify-mainnet-apple-silicon branch May 29, 2026 15:20
@github-actions
Copy link
Copy Markdown

Compute Unit Report

Instruction Samples Min CUs Max CUs Avg CUs Est Cost (Low) [SOL] Est Cost (Med) [SOL] Est Cost (High) [SOL]
cancel_subscription 22 1720 2030 1919 0.000005000 0.000005076 0.000005959
close_subscription_authority 10 1803 1833 1806 0.000005000 0.000005072 0.000005903
create_fixed_delegation 41 3522 18522 5997 0.000005001 0.000005239 0.000007998
create_plan 97 3436 15449 4846 0.000005001 0.000005193 0.000007423
create_recurring_delegation 29 3550 9555 5418 0.000005001 0.000005216 0.000007709
delete_plan 9 359 359 359 0.000005000 0.000005014 0.000005179
init_subscription_authority 173 6226 27226 9673 0.000005002 0.000005386 0.000009836
resume_subscription 3 1723 1723 1723 0.000005000 0.000005068 0.000005861
revoke_delegation 19 255 519 353 0.000005000 0.000005014 0.000005176
subscribe 32 6485 17009 8460 0.000005002 0.000005338 0.000009230
transfer_fixed 9 6976 10603 8364 0.000005002 0.000005334 0.000009182
transfer_recurring 19 5591 12215 7939 0.000005002 0.000005317 0.000008969
transfer_subscription 10 5838 8931 6893 0.000005002 0.000005275 0.000008446
update_plan 22 424 503 477 0.000005000 0.000005019 0.000005238

Generated: 2026-05-29

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