-
Notifications
You must be signed in to change notification settings - Fork 2
Git fetcher: Restore progress indication #250
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
base: main
Are you sure you want to change the base?
Conversation
We were calling git with `--quiet` in order not to mess up Nix's progress bar. However, `runProgram()` already suspends the progress bar (since git may be interactive) so that's no longer an issue. So we can just run with `--progress` instead.
Otherwise the user won't see messages like "fetching Git repository" from the Git fetcher.
WalkthroughTwo files modified: Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (2)src/libmain/progress-bar.cc (2)
src/libfetchers/git-utils.cc (2)
⏰ 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). (2)
🔇 Additional comments (5)
Comment |
Motivation
This fixes Nix appearing to hang while fetching a Git repo (with no indication that it's doing that).
We were calling git with
--quietin order not to mess up Nix's progress bar. However,runProgram()already suspends the progress bar (since git may be interactive) so that's no longer an issue. So we can just run with--progressinstead.Also, when pausing the progress bar, print current activities. Otherwise the user won't see messages like "fetching Git repository" from the Git fetcher.
Context
Summary by CodeRabbit