- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.7k
 
Closed
Labels
C-bugCategory: bugCategory: bug
Description
Problem
cargo rebuilds things if I switch between cargo build and cargo build --workspace.
Steps
git clone https://salsa.debian.org/iwj/ottercd ottergit checkout c9b5a88d7a33a6e1eac22736be0a38c6815e1706cargo build --workspacecargo build
To repeat, restarting from after step 4 or 5:
touch src/updates.rs- as above
 - as above
 
Expected behaviour
The whole workspace including the toplevel package otter was built in step 4, so step 5 should not build anything and should be very quick.
Actual behaviour
cargo rebuilds otter (including library and binaries) in step 5 (about six seconds on my laptop in a repeated test)
Notes
Output of cargo version:
cargo 1.51.0-nightly (783bc43c6 2021-01-20)
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bug