-
Notifications
You must be signed in to change notification settings - Fork 609
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
fix: create temp folder with looser perms #8670
Conversation
WalkthroughThe changes involve modifying the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant TempDir
User->>CLI: Initialize Command
CLI->>TempDir: Call tempDir()
TempDir->>TempDir: Create temporary directory
TempDir-->>CLI: Return directory path
CLI->>CLI: Continue with command execution
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
(cherry picked from commit 1bdcf05)
(cherry picked from commit 1bdcf05) Co-authored-by: PaddyMc <[email protected]>
Interesting, wasn't aware we even created folders outside of .osmosisd |
What is the purpose of the change
During the testnet upgrade multiple node runners failed to upgrade their nodes as there was an issue when creating a new folder to populated command, this PR leverages the go
os.MkdirTemp()
function to initialise the folder with looser perms and in the/tmp
folder, allowing it to be created and deleted by all system users.See
How to test
cd /
osmosisd
<= this won't work on thev26.0.0-rc3
branch