RTECO-1986 - Create missing --path dir instead of erroring - #537
Conversation
ResolvePathInstallBase (shared by skills and plugins install/update via ValidateInstallFlags) now creates the --path target directory, including any missing parents, instead of failing when it doesn't exist yet. Uses the existing EnsureDestinationDir helper (os.MkdirAll), so this works cross-platform on Windows, Mac, and Linux with no new code. Still rejects --path when it points at an existing file. Removed ValidateExistingDir (agent/common/file_operations.go), which was only used at this call site and became dead code.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (2)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthrough
ChangesInstall path creation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change creates missing --path directories while continuing to reject file targets; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
ResolvePathInstallBase (shared by skills and plugins install/update via ValidateInstallFlags) now creates the --path target directory, including any missing parents, instead of failing when it doesn't exist yet. Uses the existing EnsureDestinationDir helper (os.MkdirAll), so this works cross-platform on Windows, Mac, and Linux with no new code.
Still rejects --path when it points at an existing file.
Removed ValidateExistingDir (agent/common/file_operations.go), which was only used at this call site and became dead code.
Summary by CodeRabbit