Skip to content

Conversation

@profnandaa
Copy link
Contributor

@profnandaa profnandaa commented Jun 5, 2025

Using "/" was causing a silent bug later on at fs.go:121 that is expecting platform-specific
separators. See discussion at moby/buildkit#6007

Fix this by using \\ on Windows and / on unix.

Using "/" was causing a silent bug later on at
`fs.go:121` that is expecting platform-specific
separators. See discussion at moby/buildkit#6007

Fix this by using `\\` on Windows and `/` on unix.

Signed-off-by: Anthony Nandaa <[email protected]>
Copy link
Owner

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to do a bit more thorough overview of the walkers and define more clearly which path should be used where. proto.Stat.Path should always be unix style while I think input path should be machine dependant. The callback path I think machine dependant but not 100% , if you look at the filterFS then it seems to be unix-style while if you look at subDirFS then it is machine-style. I think this one is correct anyway.

@tonistiigi tonistiigi merged commit 586307a into tonistiigi:master Jun 5, 2025
22 checks passed
@profnandaa profnandaa deleted the fix-use-platform-specific-separator branch June 5, 2025 21:12
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.

2 participants