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

chore(simdv2): allow overriding the --home flag (backport #22348) #22350

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 23, 2024

There were two calls to viper.Set(serverv2.FlagHome, simapp.DefaultNodeHome); these calls invalidated any provided --home command line arguments. When testing multiple simapp instances in the same process, it is necessary to provide separate home directories.

Changing the calls from .Set to .SetDefault retains the previous behavior of using DefaultNodeHome when no --home flag is provided, but it still respects --home when the flag is indeed provided.

Summary by CodeRabbit

  • Bug Fixes

    • Improved handling of the default home directory for application configuration to ensure consistent initialization.
    • Enhanced error handling for context validation in command initialization.
  • Refactor

    • Updated method for setting the home directory to utilize default values, streamlining configuration management.

This is an automatic backport of pull request #22348 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from a team as a code owner October 23, 2024 20:11
@julienrbrt julienrbrt merged commit 9179814 into release/v0.52.x Oct 23, 2024
68 of 70 checks passed
@julienrbrt julienrbrt deleted the mergify/bp/release/v0.52.x/pr-22348 branch October 23, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants