-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(scoop-download): Fix download success prompt, prevent duplicate downloads #6473
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: develop
Are you sure you want to change the base?
Conversation
WalkthroughDeduplicates app list, introduces a labeled outer loop for per-app control flow, adds a per-app download-failure flag, and changes hash-check failure handling to skip remaining URLs for the current app. Success messages are now gated by the per-app failure flag. Existing error handling remains unchanged. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant SD as scoop-download.ps1
participant Repo as URL(s)
participant Cache as Cache/Hasher
User->>SD: Invoke with app list
SD->>SD: Deduplicate apps
loop For each app (app_loop)
SD->>Repo: Try URL 1..N (download)
alt Download fails
SD->>SD: Set dl_failure = true
SD-->>SD: continue app_loop
else Download succeeds
SD->>Cache: Hash check
alt Hash mismatch/error
SD->>Cache: Purge invalid cache
SD->>SD: Log hash error / SF.net warning
SD-->>SD: continue app_loop
else Hash OK
SD->>SD: Mark success for app
end
end
SD->>User: If no dl_failure, print per-app success
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 3
🧹 Nitpick comments (1)
libexec/scoop-download.ps1 (1)
60-60: Loop label is unnecessary with the proposed inner-loop control.If you stop using continue app_loop (see suggestions below), drop the label for clarity.
-:app_loop foreach ($curr_app in $apps) { +foreach ($curr_app in $apps) {
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled
- Linear integration is disabled
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
libexec/scoop-download.ps1(4 hunks)
Description
Motivation and Context
Closes
scoop download: Incorrect Success Prompt Logic #6413The
scoop downloadcommand has the following problemschanges
This PR makes the following changes:
Checklist:
developbranch.Summary by CodeRabbit
New Features
Bug Fixes