Skip to content

Conversation

@lawliet89
Copy link
Contributor

@lawliet89 lawliet89 commented Mar 13, 2017

Summary

This is a continuation of (and depends on) #2885 which re-fixes #1750 and friends. The bug was reintroduced with the switch to tar-fs in #2826.

Test plan

To test the fix for #2005, we need to run yarn install as the root user. In addition, we also need to run it as root behind a user namespace. CircleCI has the set up we need.

First, I added a commit on top of #2885 to prove that it fails.

Then, we can see that (other than some timeout test failure that already existed prior to this), it passes in this PR.

Alternatively, you can test this by setting up a Docker daemon with user namespace enabled. Then, checkout this branch, yarn build, and try to do a bin/yarn install.

@lawliet89 lawliet89 changed the title Fix yarn tar userns Fix User Namespace issues with untaring Mar 13, 2017
@bestander bestander merged commit 6fb3ba5 into yarnpkg:master Mar 13, 2017
@bestander
Copy link
Member

Awesome!
Thanks for digging deeper

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.

yarn install fails inside a Docker Container with --userns-remap enabled

2 participants