Skip to content
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: config overwrite fails with exit code 1 if wrong permissions #7246

Merged
merged 3 commits into from
Jan 5, 2024

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Jan 5, 2024

Closes: #XXX

What is the purpose of the change

This PR fixes bug where osmosisd fails with non-zero code if fails to overwrite the file due to permissions:
https://github.com/cometbft/cometbft/blob/fe45483be36ebfea7e172a3ad949e8fe09a8fd95/libs/os/os.go#L83

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

@p0mvn p0mvn added V:state/compatible/backport State machine compatible PR, should be backported A:backport/v21.x backport patches to v21.x branch labels Jan 5, 2024
@p0mvn p0mvn marked this pull request as ready for review January 5, 2024 03:45
@p0mvn p0mvn merged commit 74ea7f1 into main Jan 5, 2024
1 check passed
@p0mvn p0mvn deleted the roman/fix-config-overwrite-perms branch January 5, 2024 04:04
mergify bot pushed a commit that referenced this pull request Jan 5, 2024
)

* fix: config overwrite fails with exit code 1 if wrong permissions

* changelog

* lint

(cherry picked from commit 74ea7f1)
p0mvn added a commit that referenced this pull request Jan 5, 2024
) (#7247)

* fix: config overwrite fails with exit code 1 if wrong permissions

* changelog

* lint

(cherry picked from commit 74ea7f1)

Co-authored-by: Roman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v21.x backport patches to v21.x branch V:state/compatible/backport State machine compatible PR, should be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants