Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way for cargo clean to remove content for a specific toolchain version #5113

Open
davemilter opened this issue Mar 3, 2018 · 4 comments
Open
Labels
Command-clean S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

Comments

@davemilter
Copy link

Looks like cargo can cache result of cargo build for different toolchains,
if I run cargo +stable build && cargo +nightly build && cargo +stable build with empty target
it build only two times, the second run of cargo +stable build does nothing.
This is great.
But if I run cargo +nightly clean the next run of cargo +stable build also run full rebuild.

It would be great if cargo +nightly build clean cache related only to nightly toolchain,
cargo +stable clean clean cache related only to stable toolchain and so on.

@stale
Copy link

stale bot commented Sep 16, 2018

As there hasn't been any activity here in over 6 months I've marked this as stale and if no further activity happens for 7 days I will close it.

I'm a bot so this may be in error! If this issue should remain open, could someone (the author, a team member, or any interested party) please comment to that effect?

The team would be especially grateful if such a comment included details such as:

  • Is this still relevant?
  • If so, what is blocking it?
  • Is it known what could be done to help move this forward?

Thank you for contributing!

If you're reading this comment from the distant future, fear not if this was closed automatically. If you believe it's still an issue please leave a comment and a team member can reopen this issue. Opening a new issue is also acceptable!

@stale stale bot added the stale label Sep 16, 2018
@dwijnand
Copy link
Member

Related to #5026 ("cargo target fills will outdated artifacts as toolchains are updated/changed").

How would one go about changing clean so it only cleans artefacts relevant to the selected channel?

@stale stale bot removed the stale label Sep 16, 2018
@Eh2406
Copy link
Contributor

Eh2406 commented Dec 26, 2018

cargo sweep is adding this functionality.

@epage
Copy link
Contributor

epage commented Oct 18, 2023

I don't think it'd make sense for cargo clean to only clean up for the toolchain being invoked but I could see the possibility of a flag. We'd need better tracking of what files are associated with what toolchain. #12633 is the most likely route for that.

@epage epage added the S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted. label Oct 18, 2023
@epage epage changed the title "cargo +X clean" cleans not only for X A way for cargo clean to remove content for a specific toolchain version Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-clean S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Projects
None yet
Development

No branches or pull requests

5 participants