Skip to content

Using nightly channel for builds #1562

Answered by Emilgardis
git-g00d asked this question in Q&A
Discussion options

You must be logged in to vote

cross is designed to use toolchains installed on the host machine, not in the image. We add the path to a mounted toolchain into PATH. I suspect that the reason this doesnt work here is because the cargo added by the rust image is prioritized.

What you should do then is not install cargo in the image. I think you could also use RUSTUP_TOOLCHAIN=<toolchain> cross ... and also set it in Cross.toml via build.env.passthrough = ["RUSTUP_TOOLCHAIN=<toolchain>"]

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@git-g00d
Comment options

@Emilgardis
Comment options

@Emilgardis
Comment options

Answer selected by git-g00d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants