Commit a85e608
feat: Add custom dependency file support with proper path resolution
Implements comprehensive per-repository custom dependency file paths and names
with dependency isolation and correct relative path resolution.
## New Features
### Custom Dependency File Configuration
- Add "Dependency File Path" field for custom subdirectories
- Add "Dependency File Name" field for custom file names
- Support both fields independently or together
- Maintain full backward compatibility
### Dependency Isolation
- Custom settings apply only to defining repository
- Nested repositories use default dependency file names
- Prevents configuration coupling between parent/child repos
- Maintains clean separation of concerns
### Fixed Path Resolution
- Relative paths now correctly resolve from repository root
- Fixed critical bug where paths resolved from dependency file location
- Proper handling of ".." segments in nested structures
- Intuitive behavior matching user expectations
## Technical Implementation
### Core Changes
- Enhanced `Get-AbsoluteBasePath()` with repository root context
- Added `Get-CustomDependencyFilePath()` for custom file resolution
- Updated function signatures throughout call chain
- Extended repository dictionary for custom settings storage
### Path Resolution Flow
- Root dependencies: Relative to dependency file directory
- Nested dependencies: Relative to repository root directory
- Repository root path passed through processing chain
- Proper normalization of all path types
### Quality Assurance
- Extensive testing of partial API overlap scenarios
- Validated incompatible API handling
- Tested custom path and filename configurations
- Verified correct relative path resolution
- Confirmed dependency isolation behavior
## Configuration Examples
### Basic Custom Name
```json
{
"Repository URL": "https://github.com/org/repo.git",
"Base Path": "repos/project",
"Tag": "v1.0.0",
"Dependency File Name": "project-modules.json"
}
```
### Custom Path and Name
```json
{
"Repository URL": "https://github.com/org/repo.git",
"Base Path": "repos/project",
"Tag": "v1.0.0",
"Dependency File Path": "config/deps",
"Dependency File Name": "external-deps.json"
}
```
### Path Resolution Example
```
Repository: project/
Custom file: project/build/config/deps.json
Relative path: ../libs/shared
Resolves to: project/libs/shared (✅ repo root)
Not: project/build/libs/shared (❌ file location)
```
## Benefits
### For Organizations
- Support diverse project structures and naming conventions
- Enable gradual migration from existing systems
- Accommodate team-specific preferences
- Maintain configuration boundaries
### For Developers
- Intuitive relative path behavior
- Flexible dependency file organization
- Clear separation between repositories
- Enhanced debugging capabilities
### For Enterprise
- Compliance with organizational standards
- Integration with existing tooling
- Scalable multi-team support
- Robust error handling
## Documentation Updates
- Comprehensive README section on custom dependency files
- Updated CHANGELOG with detailed feature description
- New example configuration files
- Enhanced troubleshooting guide
## Backward Compatibility
- Zero breaking changes
- All existing configurations work unchanged
- Optional feature with sensible defaults
- Seamless upgrade path from v6.0.x
Closes #5
Co-authored-by: Claude (Anthropic) <claude@anthropic.com>1 parent 5749645 commit a85e608
13 files changed
Lines changed: 611 additions & 169 deletions
File tree
- examples
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
8 | 87 | | |
9 | 88 | | |
10 | 89 | | |
| |||
0 commit comments