File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
config/v3_6_experimental/types Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,11 @@ func (cfg Config) validateParents(c path.ContextPath) report.Report {
124124 // Check if any parent path exists as a file or link
125125 parentPath := entry .Path
126126 for {
127- parentPath = filepath .Dir (parentPath )
128- if parentPath == "/" || parentPath == "." {
127+ newParentPath : = filepath .Dir (parentPath )
128+ if newParentPath == parentPath || newParentPath == "." {
129129 break
130130 }
131+ parentPath = newParentPath
131132
132133 if parentEntry , exists := paths [parentPath ]; exists {
133134 // If the parent is not a directory, it's a conflict
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ nav_order: 9
1414
1515### Changes
1616
17+ - Fix validation to properly detect when a file/link path conflicts with a parent directory.
18+
1719### Bug fixes
1820
1921- Fix fetch-offline for Oracle Cloud Infrastructure
You can’t perform that action at this time.
0 commit comments