japaric / trust

Travis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows
Apache License 2.0
1.26k stars 59 forks source link

Running CI with a rust-toolchain file present #103

Closed dwijnand closed 6 years ago

dwijnand commented 6 years ago

Quoting from https://twitter.com/Sunjay03/status/997336553528610816:

If you use a rust-toolchain file in your @rustlang project, make sure you delete it when you run CI. If you don't, you'll always build on a single version of Rust and your tests will keep passing even if they shouldn't b/c you aren't testing what you expect

Summary of the thread at this time:

/cc @sunjay, @manishearth, @llogiq, @anp

Manishearth commented 6 years ago

CI should fail if the file is present and the user has explicitly provided rust versions.

Pinning nighties is a common use case for this and CI should allow that.

anp commented 6 years ago

@Manishearth I agree, although I think that's probably a better thing to do in an editable template (like this repo) than in the application logic of the CI software. Sometimes you have to do weird things :P.