`yalc dir` shows 'null/.yalc' as the store-folder
saquibtmf opened this issue · comments
Hello team,
I am using Docker Agent on Jenkins to build a project that uses yalc. In the jenkinsfile I have setup the agent as
agent {docker {image: npm -u 0:0}}
. In this, I am passing the root user by its uid:gid rather than username. What's happening now is that yalc takes the store location as null/.yalc wherein it should be /root/.yalc. This is causing yalc add
to fail since it is looking in /null/.yalc which does not exist. Coincidentally, yalc publish
is successful.
As a workaround, I am passing --store-folder
to override the defaults, but why is it happening that way. How does yalc calculates the location for store?