Skip to content

Dependency in workspace not recompiled after compiler version change #2897

Closed
@euclio

Description

@euclio

Steps to reproduce

  1. Create a new crate.
  2. Inside that crate, create another crate. This crate should be both a path dependency and a workspace member of the root crate.
  3. Compile both crates.
  4. Change your compiler version (using rustup, etc.)
  5. Compile the member crate.
  6. Compile the root crate.

You should get an error found crate "member" compiled by an incompatible version of rustc.

Expected behavior

The dependency is recompiled using the new compiler.

You can see this error happening in the rust-rosetta CI here. It seems that the artifacts in the cache were compiled with an older nightly, so the compilation failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions