8000 Normalize file tree root before walking by dajiaohuang · Pull Request #1813 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

Normalize file tree root before walking - #1813

Closed
dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/packagestest-windows-root-path
Closed

dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/packagestest-windows-root-path

Conversation

@dajiaohuang
Copy link
Copy Markdown

MustCopyFileTree converted the walk root to the host path format but compared each walked path against the original slash-form root. On Windows, a multi-segment root therefore looked like a nested directory and a root go.mod caused the whole tree to be skipped. Normalize once and use the same path for walking and comparison.

@dajiaohuang dajiaohuang closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0