actions-rust-lang / setup-rust-toolchain

Setup a specific Rust toolchain with extra features like problem matchers
MIT License
180 stars 32 forks source link

Allow overriding the toolchain file #26

Closed Twey closed 9 months ago

Twey commented 11 months ago

Sometimes we have a toolchain file but want to override it in some specific cases. For example, in a current project, we want to use nightly rustfmt, so our linter step uses nightly Rust even though our main build uses stable Rust.

This PR changes (and documents) the behaviour of the action in the case in which both a toolchain file and a toolchain input are present, preferring the toolchain input.

jonasbb commented 9 months ago

Thanks for the PR @Twey. It is included now in v1.7.0

Twey commented 9 months ago

Thanks for the review folks! Hope it helps :)