这是indexloc提供的服务,不要输入任何密码
Skip to content

Support running with unwritable homedir #79

@Krinkle

Description

@Krinkle

This follows-up from #3 and #49.

The CI environment I use for some projects runs builds in a Docker container as nobody and its default of HOME=/nonexistent. Due to this, projects using spawn-wrap (such as istanbuljs/nyc for code coverage), fail to operate in CI as it tries to unconditionally make a (temporary) directory in HOME.

Downstream:

Would you be open toward a patch that considers XDG_CACHE_HOME before falling back to HOME?

This way, we wouldn't have to maintain an hardcoded exception in our CI environment (or in package.json#scripts.test) that sets SPAWN_WRAP_SHIM_ROOT. I imagine this would be beneficial to other users as well.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions