rust-lang / rust-lang/cargo

ecryptfs causes Cargo to rebuild when it shouldn't

Open
#7,775 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-filesystem A-rebuild-detection C-bug S-blocked-external
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

What I did:

  • cargo clean
  • cargo build => everything is rebuilt, that's OK
  • cargo build again => some crates are rebuilt, that's not OK
  • cargo build again => nothing is rebuilt, that's OK

Happens on my laptop running Debian/testing, rust 1.40 from rustup, 8Gb RAM.
Doesn't happen on my desktop, sames OS, same rust, 20Gb RAM.

How can I help and provide debug info ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the repeated cargo build behavior described on Debian/testing with Rust 1.40, comparing the laptop and desktop environments. Check which crates rebuild on the second invocation and gather the debug information needed to distinguish the eCryptfs environment from the build process. Done means the unnecessary rebuilds are explained and a targeted fix or reliable reproduction is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.