Skip to content

Commit 73015a6

Browse files
committed
release_notes: write release notes for bugfix
1 parent 3fd2e85 commit 73015a6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

config/v3_6_experimental/types/config.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

docs/release-notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)