Ellipsis-Labs / solana-verifiable-build

CLI tool for deterministically building and verifying executable against on-chain programs or buffer accounts
183 stars 42 forks source link

Add --workspace-path #67

Open ngundotra opened 1 month ago

ngundotra commented 1 month ago

Difference between --workspace-path and --mount-path

Workspace path allows solana-verify to build programs in separate workspaces from the monorepos in which are contained. This allows programs in monorepos that access libraries in other workspaces to be compiled correctly with solana-verify.

Setting mount-path to a separate workspace within a monorepo may fail to build if the program's workspace accesses libraries outside the mount path.

Version bumped from 0.2.11 -> 0.2.12 in Cargo.toml.

Example verifying account compression:

solana-verify verify-from-repo https://github.com/solana-labs/solana-program-library --library-name spl_account_compression --workspace-path ./account-compression

jarry-xiao commented 1 month ago

Thanks for the contribution!

2 requests: