Ellipsis-Labs / solana-verifiable-build

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

`solana-verify build` does not play nicely with rust-toolchain.toml of different cargo versions #50

Open buffalu opened 7 months ago

buffalu commented 7 months ago

When using rust-toolchain.toml, one often runs into the following error:

Finished fetching build dependencies
error: Unable to update registry `crates-io`

Caused by:
  attempting to make an HTTP request, but --frozen was specified
Finished building program
Program Solana version: v1.16.20
Docker image Solana version: v1.16.20

This can happen even when the rust-toolchain.toml matches the version in the solana v1.16.20 repository.

buffalu commented 7 months ago

note: if you use v1.68.0, it plays nicely because thats the compiler that comes with the installed rust container

jarry-xiao commented 7 months ago

Each Dockerfile has a 1-to-1 mapping between the Solana version and rust version in order to keep the number of configs needed under control. I'll do a bit of digging to see if there's an easy way to ignore rust-toolchain.toml. In the interim, it might be best to set the toolchain to correspond with the rust version in the Dockerfile

Jac0xb commented 6 months ago

I'm confused because my rust version is solana v1.17.22 and I'm getting this but the rust-toolchain.toml is channel = "1.73.0" for that release.

image
annajjk88 commented 2 months ago

😐