You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
An alternative would be to use /tmp. spawn-wrap doesn't really have to use the home directory, any directory with write access should work. XDG_CACHE_HOME is also a fitting location to use.
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 ofHOME=/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 toHOME
?This way, we wouldn't have to maintain an hardcoded exception in our CI environment (or in
package.json#scripts.test
) that setsSPAWN_WRAP_SHIM_ROOT
. I imagine this would be beneficial to other users as well.Thanks.
The text was updated successfully, but these errors were encountered: