-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix inconsistent handling of working dir and include processing for relative paths. #4566
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Should we merge the integration test from #4492 here as well? |
📝 WalkthroughWalkthroughThe changes normalize the handling of working directory paths in both CLI flag parsing and internal configuration logic by converting them to absolute, slash-separated paths. An integration test is added to verify that the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant Flags
participant Config
participant FileSystem
User->>CLI: Run 'terragrunt find --working-dir ./deploy-2'
CLI->>Flags: Parse and set working-dir flag
Flags->>FileSystem: Convert to absolute, normalize slashes
Flags->>Config: Pass normalized working-dir
Config->>FileSystem: Resolve include paths to absolute
Config->>CLI: Return resolved configuration
CLI->>User: Output find results
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (1)**/*.go⚙️ CodeRabbit Configuration File
Files:
🔇 Additional comments (7)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Description
Fixes #4565
Ensure consistent behavior between absolute and relative paths for working dir and include processing.
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Fixed relative --working-dir path handling causing filepath.Rel errors in find command.
Migration Guide
Summary by CodeRabbit
Bug Fixes
Tests