Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
buffalu opened this issue Feb 6, 2024 · 4 comments

Comments

@buffalu
Copy link
Contributor

buffalu commented Feb 6, 2024

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 buffalu changed the title solana-verify build does not play nicely with rust-toolchain.toml solana-verify build does not play nicely with rust-toolchain.toml of different cargo versions Feb 6, 2024
@buffalu
Copy link
Contributor Author

buffalu commented Feb 6, 2024

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

@jarry-xiao
Copy link
Contributor

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
Copy link
Contributor

Jac0xb commented Mar 18, 2024

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
Copy link

😐

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

No branches or pull requests

4 participants