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

error: override toolchain 'stable' is not installed #8

Closed
abitrolly opened this issue Sep 9, 2017 · 5 comments
Closed

error: override toolchain 'stable' is not installed #8

abitrolly opened this issue Sep 9, 2017 · 5 comments

Comments

@abitrolly
Copy link

Trying to build 3rd party project with rust:1.20-stretch gives this error:

error: override toolchain 'stable' is not installed

info: caused by: the toolchain file at '/build/rust-toolchain' specifies an uninstalled toolchain

Is it possible to ship the stable toolchain with those images?

@sfackler
Copy link
Member

sfackler commented Sep 9, 2017

The images use the toolchain for the specific release - 1.20.0 in the case of rust:1.20-stretch.

@abitrolly
Copy link
Author

@sfackler official blog says that 1.20.0 is stable, so why the error?

@sfackler
Copy link
Member

Rustup has multiple toolchains it can use. "stable" means the newest stable release. We can't use "stable" in the docker images because it isn't reproducible. If we did and you reran the build for the 1.19.0 image now, it'd have 1.20.0 on it. We instead use the toolchains that pin to the specific stable release.

@abitrolly
Copy link
Author

So, the solution is to patch rust-toolchain file with specific version tag.

But 1.20.0 is the newest stable release, so why it still fails?

@abitrolly
Copy link
Author

abitrolly commented Sep 12, 2017

echo 1.20.0 > rust-toolchain

Fixes the issue.

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

2 participants