-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Recursively create parent directories when creating config dir #3897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ndr-ds
merged 1 commit into
main
from
05-06-recursively_create_parent_directories_when_creating_config_dir
May 9, 2025
Merged
Recursively create parent directories when creating config dir #3897
ndr-ds
merged 1 commit into
main
from
05-06-recursively_create_parent_directories_when_creating_config_dir
May 9, 2025
+1
−1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced May 6, 2025
Merged
Merged
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ma2bd
approved these changes
May 6, 2025
afck
approved these changes
May 7, 2025
Contributor
|
(Does this one line really need to be a separate PR in a stack? It gets rebased and CI triggered every time something below it in the stack changes… also, lots of GitHub notification noise.) |
63ff628 to
cd3ab06
Compare
d858999 to
1cfe578
Compare
cd3ab06 to
b7dd2db
Compare
1cfe578 to
2997a46
Compare
b7dd2db to
f6712ff
Compare
2997a46 to
296337d
Compare
This was referenced May 9, 2025
Contributor
Author
296337d to
77e7499
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Motivation
When this path is executed from inside a docker container, which we usually run as root,
$HOMEwill point to/root, butdirs::config_dir()will actually return$HOME/.config, but the.configdirectory won't be created yet.Then when we call
fs_err::create_dir("/root/.config/linera"), it can fail because.configwon't exist yet.Proposal
Recursively create directories so that
.configis also created, and the command succeeds from within Docker containers as well.Test Plan
Deploys were failing with this, now they succeed.
Release Plan