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
Recursively create parent directories when creating config dir (#3897)
## Motivation
When this path is executed from inside a docker container, which we usually run as root, `$HOME` will point to `/root`, but `dirs::config_dir()` will actually return `$HOME/.config`, but the `.config` directory won't be created yet.
Then when we call `fs_err::create_dir("/root/.config/linera")`, it can fail because `.config` won't exist yet.
## Proposal
Recursively create directories so that `.config` is also created, and the command succeeds from within Docker containers as well.
## Test Plan
Deploys were failing with this, now they succeed.
## Release Plan
- Nothing to do / These changes follow the usual release cycle.
0 commit comments