ci(repo): pass the project root to pana - #2881
Merged
Merged
Conversation
pana 0.23.18 dropped its git-based project-root detection, so it now copies only the package directory instead of the whole repo. That broke the relative path dependencies this action injects, dropping every multi-package score to 40/160. Point pana at the workspace root so the sibling packages are copied along with it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Pana GitHub Action now passes the GitHub workspace as the project root while analyzing the configured working directory. Score extraction and threshold validation are unchanged. ChangesPana project root
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
testableapple
approved these changes
Aug 12, 2026
VelikovPetar
approved these changes
Aug 12, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Every
panajob has been failing on every branch since 2026-08-12 09:36 UTC, whenpana 0.23.18was published. The action runsflutter pub global activate panaunpinned, so runs picked it up automatically.0.23.18 ships a breaking change:
The action's "Temporary Override Local Dependencies" step rewrites the inter-package deps to relative path deps (
stream_chat: {path: ../stream_chat}). Until now pana's git detection copied the whole repo to temp, so those paths resolved. 0.23.18 copies onlypackages/<pkg>/, and resolution fails:stream_chatis the only job still green — it's the only package with no local path deps.Fix
Pass
--project-root "${{ github.workspace }}"so pana copies the full tree again. Usinggithub.workspacerather than a relative../..keeps this correct for anyworking_directorythe action is called with; pana requires only that the package's pubspec be within the given root.This unblocks the pana checks on all open PRs.
🤖 Generated with Claude Code
Summary by CodeRabbit