Skip to content

exporter: add tests for a directory with an idmap error#5411

Open
nicks wants to merge 1 commit intomoby:masterfrom
nicks:nicks/fsutil
Open

exporter: add tests for a directory with an idmap error#5411
nicks wants to merge 1 commit intomoby:masterfrom
nicks:nicks/fsutil

Conversation

@nicks
Copy link
Contributor

@nicks nicks commented Oct 9, 2024

this test demonstrates the bug called out in
tonistiigi/fsutil#203

Currently, if a directory's UID can't be mapped to the host, buildkit will export an invalid tarball.

this test demonstrates the bug called out in
tonistiigi/fsutil#203

Currently, if a directory's UID can't be mapped to the host,
buildkit will export an invalid tarball.

Signed-off-by: Nick Santos <nick.santos@docker.com>
activeRef, err := cm.Get(ctx, snap.ID(), nil)
require.NoError(t, err)

fs, _, err := CreateFS(ctx, sessionID, "k???", activeRef, nil, time.Now(), CreateFSOpts{})
Copy link
Member

Choose a reason for hiding this comment

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

What is "k???"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i don't know! 😂 i didn't find a good example of what this should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants