-
Notifications
You must be signed in to change notification settings - Fork 127
homebrew: fix toolchain install without git metadata #1096
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
Conversation
|
CodeAnt AI is reviewing your PR. Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Warning Rate limit exceeded@sbryngelson has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 19 minutes and 6 seconds before requesting another review. ⌛ 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. 📒 Files selected for processing (1)
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughThe Homebrew formula for MFC is modified to set three environment variables (SETUPTOOLS_SCM_PRETEND_VERSION variants) before package installation, enabling setuptools_scm to generate metadata when building from GitHub release tarballs without a .git directory. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
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 |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes an issue where MFC's toolchain installation fails in Homebrew environments that lack git metadata. Since Homebrew builds from GitHub release tarballs without .git directories, and MFC's toolchain uses VCS-derived versioning via hatch-vcs, the build process needs explicit version information.
Key Changes:
- Adds
setuptools-scmas a build dependency to support VCS-based version resolution - Sets
SETUPTOOLS_SCM_PRETEND_VERSIONenvironment variables to provide fallback version information when git metadata is unavailable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 1 file
Nitpicks 🔍
|
|
CodeAnt AI finished reviewing your PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packaging/homebrew/mfc.rb(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
packaging/homebrew/mfc.rb (1)
toolchain/mfc/common.py (1)
system(34-41)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Full Installation Test
- GitHub Check: Cursor Bugbot
- GitHub Check: Build & Publish
🔇 Additional comments (1)
packaging/homebrew/mfc.rb (1)
32-32: LGTM! Necessary dependency added.Adding
setuptools-scmis required for the version metadata generation fix that follows.
User description
PR Type
Bug fix
Description
Add
setuptools-scmto pip dependencies for VCS versioningSet environment variables for version metadata generation
Enable Homebrew builds from GitHub release tarballs without git
Diagram Walkthrough
File Walkthrough
mfc.rb
Fix VCS versioning for Homebrew builds without gitpackaging/homebrew/mfc.rb
setuptools-scmto the pip install command for VCS-derivedversioning support
SETUPTOOLS_SCM_PRETEND_VERSION,SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MFC,SETUPTOOLS_SCM_PRETEND_VERSION_FOR_mfc) to provide fallback versionmetadata
for Homebrew builds from release tarballs without
.gitdirectoryCodeAnt-AI Description
Homebrew: allow mfc install from release tarballs without git metadata
What Changed
Impact
✅ Fewer Homebrew install failures from release tarballs✅ Clearer version metadata during pip install✅ Successful toolchain install without a .git directory💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.