Skip to content

Crashing in docker container because of "username" package #123

@raido

Description

@raido

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions