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

Running CI with a rust-toolchain file present #103

Closed
dwijnand opened this issue May 18, 2018 · 2 comments
Closed

Running CI with a rust-toolchain file present #103

dwijnand opened this issue May 18, 2018 · 2 comments

Comments

@dwijnand
Copy link

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:

  • Suggestion: CI should fail if the file is present
  • Suggestion: CI should auto-delete the file
  • Concern: pinned versions in two locations in your VCS (in rust-toolchain, in .travis.yml)
  • Suggestion: CI should run cargo +nightly build, overriding the pin from rust-toolchain
  • Note: If only building one supported version (e.g internal company code) it's how the version is defined (i.e CI shouldn't always delete it)

/cc @sunjay, @Manishearth, @llogiq, @anp

@Manishearth
Copy link

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

anp commented May 19, 2018

@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.

@dwijnand dwijnand changed the title Running CI with a rust-toolchain present Running CI with a rust-toolchain file present Jul 12, 2018
@dwijnand dwijnand closed this as completed Sep 3, 2018
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

3 participants