Skip to content

Running CI with a rust-toolchain file present #103

@dwijnand

Description

@dwijnand

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions