-
Notifications
You must be signed in to change notification settings - Fork 485
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
fsutil error expected single entry #2207
Comments
This patch seems to fix the issue crazy-max/fsutil@b3997ab (didn't test all cases atm) |
Aha, yeah, that definitely looks like the right fix. The Maybe we should annotate the error there that indicates that this is unexpected and internal? Instead of a genuine error that the library consumer can be expected to handle. |
tonistiigi/fsutil#167 (review) still needs a follow-up as well I think. This Walk to get a Stat pattern does not make sense afaics (and seems to be error-prone). |
@glours Use this branch for your patch in compose: tonistiigi/fsutil@master...crazy-max:fsutil:toslash-keep-gogo It reverts gogo removal to avoid breaking compat in compose related to buildx vendoring.
|
Maybe. I remember a discussion about this on slack/sync, I no longer have access. The problem is that, when filtering files, if a directory had all of it's contents excluded it would never get walked (or something like this). This means that calling We could define Obviously this could be massively simplified if we removed the assumption that empty directories are just removed - but this is the implication of doing the lazy evaluation of the parent paths. Not sure exactly why we do this, but if we could change this, then I think we might actually be able to entirely remove our custom (sorry, I've kind of lost a lot of the context for this) |
Commit 7781b7c vendoring buildx master introduced a regression with a bump of the peer dependency github.com/tonistiigi/fsutil. full diff: tonistiigi/fsutil@36ef4d8...f098008 When bisecting, tonistiigi/fsutil#167 is the PR introducing the regression. We got a similar issue reported before DD 4.27 (docker/buildx#2207) that was fixed with tonistiigi/fsutil@master...crazy-max:fsutil:toslash-keep-gogo but Windows users encountered another new issue also related to fsutil. While a fix is being worked on fsutil repo to address this issue, I have created a branch that reverts this change in fsutil. This branch for buildkit https://github.com/crazy-max/buildkit/tree/compose-957cb50df991 has been created at the regression point and reverts moby/buildkit#4094. Another branch for buildx https://github.com/crazy-max/buildx/tree/compose-617f538cb315 has been created as well to vendor the buildkit branch and replace both buildkit and fsutil to the right commit. Signed-off-by: CrazyMax <[email protected]>
Commit 7781b7c vendoring buildx master introduced a regression with a bump of the peer dependency github.com/tonistiigi/fsutil. full diff: tonistiigi/fsutil@36ef4d8...f098008 When bisecting, tonistiigi/fsutil#167 is the PR introducing the regression. We got a similar issue reported before DD 4.27 (docker/buildx#2207) that was fixed with tonistiigi/fsutil@master...crazy-max:fsutil:toslash-keep-gogo but Windows users encountered another new issue also related to fsutil. While a fix is being worked on fsutil repo to address this issue, I have created a branch that reverts this change in fsutil. This branch for buildkit https://github.com/crazy-max/buildkit/tree/compose-957cb50df991 has been created at the regression point and reverts moby/buildkit#4094. Signed-off-by: CrazyMax <[email protected]>
With latest changes from fsutil tonistiigi/fsutil@35e1166, I have another error which seems to be on the receiver side:
|
Repro on master (7e4021a) on a Windows machine when building https://github.com/dockersamples/avatars:
Might be related to tonistiigi/fsutil#167 (tonistiigi/fsutil@36ef4d8...f098008#diff-0ecba5c38a48c9edee18cf59877735dbc0036535be4a4af3d797b45c5862c71fR150) (cc @jedevc)
I looked at running fsutil tests on Windows and found tonistiigi/fsutil#173 (comment)
The text was updated successfully, but these errors were encountered: