-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WCOW: Build context with nested directories fails with "unclean path" #4741
Comments
Thanks for opening the issue! I suspect this must be related to #4696 -- can you try |
I can repro the issue now on WS2022:
Will take a look. |
Is there a situation where this doesn't occur but nested directories work? I'm here because |
I'm still investigating this but I suspect this is around |
Looks similar to #4723 (comment) |
@crazy-max -- that's true. So, turns out
ref:
Yes, turns out, the path is being stored with
I'm still on it. /cc. @gabriel-samfira |
Now fixed it in a hacky way, cleaning it up and will do the PRs first to fsutil (and later vendor it); and then here.
Will also add some more path tests cases in our integration tests suite. |
Fix in tonistiigi/fsutil#196 ; will be vendored here once merged. |
what does the schedule look like for this getting released? it's kind of a showstopper for windows, so you're not seeing other bugs related to buildkit windows until this gets released. |
Full diff: https://github.com/tonistiigi/fsutil/compare/7525a1af2bb5..497d33b Summary changes: - tonistiigi/fsutil#195 receive: ensure callback errors are propagated - tonistiigi/fsutil#196 Fix file transfers from windows to linux fixes moby#4741 - tonistiigi/fsutil#197 recv: translate linkname to wire format Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
Full diff: https://github.com/tonistiigi/fsutil/compare/7525a1af2bb5..497d33b Summary changes: - tonistiigi/fsutil#195 receive: ensure callback errors are propagated - tonistiigi/fsutil#196 Fix file transfers from windows to linux fixes moby#4741 - tonistiigi/fsutil#197 recv: translate linkname to wire format Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
Full diff: https://github.com/tonistiigi/fsutil/compare/7525a1af2bb5..497d33b Summary changes: - tonistiigi/fsutil#195 receive: ensure callback errors are propagated - tonistiigi/fsutil#196 Fix file transfers from windows to linux fixes moby#4741 - tonistiigi/fsutil#197 recv: translate linkname to wire format Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
Full diff: https://github.com/tonistiigi/fsutil/compare/7525a1af2bb5..497d33b Summary changes: - tonistiigi/fsutil#195 receive: ensure callback errors are propagated - tonistiigi/fsutil#196 Fix file transfers from windows to linux fixes moby#4741 - tonistiigi/fsutil#197 recv: translate linkname to wire format Signed-off-by: Anthony Nandaa <profnandaa@gmail.com> (cherry picked from commit 64ea9da)
Full diff: https://github.com/tonistiigi/fsutil/compare/7525a1af2bb5..497d33b Summary changes: - tonistiigi/fsutil#195 receive: ensure callback errors are propagated - tonistiigi/fsutil#196 Fix file transfers from windows to linux fixes moby#4741 - tonistiigi/fsutil#197 recv: translate linkname to wire format Signed-off-by: Anthony Nandaa <profnandaa@gmail.com> (cherry picked from commit 64ea9da)
Hi @tonistiigi |
I was able to build a Windows container from a build context with nested directories using the latest release - it looks like the issue has been resolved. |
I also verified that it works now |
Using nested directories in build context fails with
error: failed to solve: unclean path test2/hello.txt: invalid argument
.Repro
Version
buildctl --version
buildctl github.com/moby/buildkit v0.13.0-rc2 596ef8f
Windows 11 23H2
The text was updated successfully, but these errors were encountered: