Skip to content

rustbuilds rebuilds libstd even when it did not change [recent regression] #57142

Closed
rust-lang/cargo
#6493
@RalfJung

Description

@RalfJung

For just a few weeks now, I am seeing many cases where rustbuild rebuilds stage 0 libstd (and hence rebuilds everything) even though nothing changed there. I have not yet tried to reproduce this in a clean dir (that would take forever due to all the rebuilding), but the steps are roughly as follows:

  • Start with a clean dir
  • ./x.py --stage 0 build src/librustc
  • ./x.py --stage 0 build src/librustc

The last step will rebuild everything even though nothing changed.

The timing coincides a little with libstd depending on crates io, but that could be mere coincidence.

Cc @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions