-
Notifications
You must be signed in to change notification settings - Fork 12
Crashing in docker container because of "username" package #123
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
Comments
As this is issue to me in Jenkins context as I run tests in container, which creates bunch of
I simply change owner of the files as a last step. |
Issue on Node.js - nodejs/node#25714 |
I'm happy to work around via catching and using some default/fallback while things get figured out... |
username v5.1.0 - https://github.com/sindresorhus/username/releases/tag/v5.1.0 Is available with a fix. |
OK, so we'd need to land #187 and do a major bump first, right? |
https://github.com/rwjblue/ember-cli-cjs-transform/blob/master/src/cjs-transform.js#L19
Line above assumes username exists, but if for example "ember test" is run with
docker run --user $(id -u):$(id -g) --env XDG_CONFIG_HOME=/myapp/build/.config --env CI=true -i --rm -v $(pwd):/myapp danlynn/ember-cli:latest ember test
Then the docker container is without $HOME and username.
See related issue: sindresorhus/username#21
The text was updated successfully, but these errors were encountered: