Skip to content

Devspace build: Cache CARGO_HOME for faster rebuilds#918

Open
kensimon wants to merge 1 commit intoNVIDIA:mainfrom
kensimon:devspace-cargo-cache
Open

Devspace build: Cache CARGO_HOME for faster rebuilds#918
kensimon wants to merge 1 commit intoNVIDIA:mainfrom
kensimon:devspace-cargo-cache

Conversation

@kensimon
Copy link
Copy Markdown
Contributor

Description

Prior to this we were caching the registry and git folders, as well as cargo's target dir, but cargo still seemed to want to re-download dependencies every time you touch the code and rebuild. Caching CARGO_HOME instead of the registry/git folders is simpler and seems to work a lot better.

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

Prior to this we were caching the registry and git folders, as well as
cargo's target dir, but cargo still seemed to want to re-download
dependencies every time you touch the code and rebuild. Caching
CARGO_HOME instead of the registry/git folders is simpler and seems to
work a lot better.
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Apr 13, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@kensimon kensimon marked this pull request as ready for review April 13, 2026 15:53
@kensimon kensimon requested a review from a team as a code owner April 13, 2026 15:53
@github-actions
Copy link
Copy Markdown

🔐 TruffleHog Secret Scan

No secrets or credentials found!

Your code has been scanned for 700+ types of secrets and credentials. All clear! 🎉

🔗 View scan details

🕐 Last updated: 2026-04-13 15:55:02 UTC | Commit: f61c956

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants