Bust Cargo cache to force Rust widget rebuild#1928
Conversation
The Cargo cache key was based only on Cargo.lock, not the Rust source code. This meant changes to template_renderer.rs were not triggering rebuilds. Bump cache version to v3 and widget_renderer version to 0.1.3 to force rebuild.
There was a problem hiding this comment.
Pull request overview
This PR busts the CircleCI Cargo cache to force a complete rebuild of the Rust widget renderer library. The previous deployment failed to include a modal button fix because CircleCI cached the compiled Rust library based only on Cargo.lock, not the Rust source code changes.
Key changes:
- Bumped Cargo cache version from v2 to v3 to invalidate existing cache
- Bumped widget_renderer version from 0.1.1 to 0.1.3
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ext/widget_renderer/Cargo.toml | Updates package version to 0.1.3 to reflect the rebuild |
| Cargo.lock | Reflects the version bump to 0.1.3 in the lock file |
| .circleci/config.yml | Updates all three cache key references (restore with checksum, restore fallback, and save) from v2 to v3 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| [package] | ||
| name = "widget_renderer" | ||
| version = "0.1.1" | ||
| version = "0.1.3" |
There was a problem hiding this comment.
The version is being bumped from 0.1.1 to 0.1.3, skipping 0.1.2. While this doesn't break functionality, it's unconventional and could cause confusion about what happened to version 0.1.2. If 0.1.2 was deployed but didn't include the modal button fix due to the cache issue, consider whether the version should follow sequential numbering for better version tracking. If there's a specific reason for skipping 0.1.2 (e.g., it was already tagged but not deployed correctly), this is acceptable but should be documented.
| version = "0.1.3" | |
| version = "0.1.2" |
Summary
Problem
The previous deployment did not include the modal button fix because CircleCI was using a cached version of the Rust library. The cache key was based only on
Cargo.lock, not the Rust source code (template_renderer.rs), so source code changes didn't trigger rebuilds.Solution
Bump the cache version to invalidate the old cache and force a fresh build of the Rust widget renderer with the modal button fix.