fix: update Flutter SDK version to 3.41.5 to match pubspec requirement - #33
Conversation
The release CI was using Flutter 3.38.7 but pubspec.yaml requires exactly 3.41.5, causing pub get to fail with version solving errors. Updated the workflow and CLAUDE.md to reflect the correct Flutter SDK version. https://claude.ai/code/session_01R5MsjePaFcFTfAELesWDcz
Instead of hardcoding the Flutter SDK version in the workflow, extract it at runtime from the `flutter:` field in workout-logger/pubspec.yaml. This keeps the workflow in sync automatically whenever pubspec.yaml is updated. https://claude.ai/code/session_01R5MsjePaFcFTfAELesWDcz
Temporarily adds claude/update-flutter-sdk-u3nK9 to push triggers so the dynamic flutter-version extraction can be validated in CI. https://claude.ai/code/session_01R5MsjePaFcFTfAELesWDcz
Replace the manual grep step with subosito/flutter-action's built-in flutter-version-file parameter, matching the pattern already used in test.yml. Also adds pub-cache-key keyed on pubspec.lock for smarter cache invalidation. Removes temporary test-branch trigger. https://claude.ai/code/session_01R5MsjePaFcFTfAELesWDcz
Using git push origin HEAD:github.ref_name ensures the version bump commit lands on whatever branch triggered the workflow, not always main. Exposed by the test run on the feature branch. https://claude.ai/code/session_01R5MsjePaFcFTfAELesWDcz
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 54 minutes and 13 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughUpdated Flutter SDK version reading in the release workflow to extract from pubspec.yaml instead of using a hardcoded value, added cache key segregation using pubspec.lock hash, changed git push target to the triggering branch reference, and updated the documented Flutter baseline version from ^3.9.2 to 3.41.5. Changes
Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@CLAUDE.md`:
- Line 220: Update the documentation line that currently reads "Builds release
APK with Flutter 3.41.5" to state that the release workflow reads the SDK
version from workout-logger/pubspec.yaml (i.e., the workflow is pubspec-driven),
since .github/workflows/release.yml sources the Flutter SDK from that file;
replace the hardcoded version text with wording like "Builds release APK using
the Flutter SDK version specified in workout-logger/pubspec.yaml" so the docs
follow the source of truth.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 3ba48379-f259-4f1c-9df9-df54eb8b8df6
📒 Files selected for processing (2)
.github/workflows/release.ymlCLAUDE.md
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
The release CI was using Flutter 3.38.7 but pubspec.yaml requires exactly
3.41.5, causing pub get to fail with version solving errors. Updated
the workflow and CLAUDE.md to reflect the correct Flutter SDK version.
https://claude.ai/code/session_01R5MsjePaFcFTfAELesWDcz
Summary by CodeRabbit
Chores