Skip to content

Correctly ignore error wrapping ErrNotSupported - #207

Merged
samuelkarp merged 1 commit into
containerd:mainfrom
TBBle:correctly-ignore-xattrs-on-windows
Aug 10, 2022
Merged

Correctly ignore error wrapping ErrNotSupported#207
samuelkarp merged 1 commit into
containerd:mainfrom
TBBle:correctly-ignore-xattrs-on-windows

Conversation

@TBBle

@TBBle TBBle commented Aug 10, 2022

Copy link
Copy Markdown
Contributor

Fixes: #206

This change fixes some existing tests which were failing on WIndows:

--- FAIL: TestCopyDirectory (0.03s)
    copy_test.go:45: Copy test failed: failed to build manifest: failed to get resource "\\etc": xattr extraction is not supported: not supported
--- FAIL: TestCopyDirectoryWithLocalSymlink (0.01s)
    copy_test.go:59: Copy test failed: failed to build manifest: failed to get resource "\\link-no-nothing.txt": xattr extraction for symlinks is not supported: not supported
--- FAIL: TestCopyWithLargeFile (9.17s)
    copy_test.go:74: failed to build manifest: failed to get resource "\\banana": xattr extraction is not supported: not supported

The same issue was visible with the command-line tool

> .\continuity.exe build . > ../a.pb
2022/08/11 02:15:44 error generating manifest: failed to get resource "\\.git": xattr extraction is not supported: not supported

now looks like

> .\continuity.exe build . > ../a.pb

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>

@estesp estesp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@samuelkarp
samuelkarp merged commit b4ca352 into containerd:main Aug 10, 2022
@TBBle
TBBle deleted the correctly-ignore-xattrs-on-windows branch August 10, 2022 23:40
TBBle added a commit to TBBle/containerd that referenced this pull request Aug 10, 2022
This is to pull in the fix for ignoring lack of xattrs support.

containerd/continuity#207
TBBle added a commit to TBBle/containerd that referenced this pull request Aug 10, 2022
This is to pull in the fix for ignoring lack of xattrs support.

containerd/continuity#207
Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
TBBle added a commit to TBBle/containerd that referenced this pull request Aug 10, 2022
This is to pull in the fix for ignoring lack of xattrs support.

containerd/continuity#207
Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
TBBle added a commit to TBBle/containerd that referenced this pull request Aug 11, 2022
This is to pull in the fix for ignoring lack of xattrs support.

containerd/continuity#207
Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
TBBle added a commit to TBBle/containerd that referenced this pull request Aug 11, 2022
This is to pull in the fix for ignoring lack of xattrs support.

containerd/continuity#207
Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
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.

Continuity is failing to ignore unsupported xattrs on Windows

3 participants