From 4e5b6f2bc4e424fdcce6d559a688c4bd8a4c6470 Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 29 May 2026 11:16:55 -0400 Subject: [PATCH] fix(verify): drop --mount-path, note Apple Silicon build --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. --- justfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 42fac08..e63336f 100644 --- a/justfile +++ b/justfile @@ -340,6 +340,9 @@ check-solana-verify: # Verify mainnet deployment against repo (remote build via OtterSec). # Note: Remote verification (--remote) only works on mainnet. +# Apple Silicon (local builds without --remote): enable Docker/Colima Rosetta and +# `export DOCKER_DEFAULT_PLATFORM=linux/amd64`. The pinned verify image is amd64-only, +# so the SBF build fails on getrandom under arm64 emulation without it. verify-mainnet: check-solana-verify #!/usr/bin/env bash set -euo pipefail @@ -348,6 +351,5 @@ verify-mainnet: check-solana-verify https://github.com/solana-program/subscriptions \ --program-id "$PROG_ID" \ --library-name subscriptions_program \ - --mount-path program \ --remote \ -um