-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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(simapp): home flag is not respected #18994
fix(simapp): home flag is not respected #18994
Conversation
After more testing, this does not fix the keyring issue when signing transactions, however - it does enable them to be created with a key from |
Yes, that was to be expected, as described here: #18868 (comment), this is because of the way to initiate the flag builder. |
During the signing process in For context, I'm currently seeing errors in |
Yes, the problem isn't there, signing is fine. |
Given the scope of changes required to make AutoCLI functional, I'll first switch back to manual CLI for tx commands in our private cosmos-sdk fork. Initializing the AutoCLI keyring only after flags have been parsed doesn't seem possible without significant redesign. After I update our private fork, I'll adjust this PR to only include genuine fixes that will be needed regardless of how the project moves forward with AutoCLI. |
86df4be
to
70a68af
Compare
70a68af
to
794b2ae
Compare
AutoCLI isn't used for tx commands in v0.50 (only main, see #18122). We'll have for sure a fix before v0.51 anyway. |
I believe three commands use AutoCLI in v0.50.2.
Using any of those commands with a We specify using 0.50.X in #18868 |
Ah okay, forgot about those, then that changes everything. I'll have a look Monday 👍 |
WalkthroughThe recent updates primarily focus on refining context management across both client and server components, enhancing configuration handling, and minor script adjustments for better environment compatibility. The modifications streamline context setting procedures and configuration management by employing more standardized methods and removing redundant parameters. These changes aim to improve code maintainability, configuration flexibility, and the overall structure of the application's context handling and configuration setup. Changes
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK.
Hey @julienrbrt, I was looking at some of the failing tests and was hoping you could provide some insight. In My changes to the Should this ref also be set (if so, why?), or should theses tests be updated to ensure the context of the command is what is being updated. |
- ~Update cosmos-sdk ref `e1b8b82c712b491ab95d4a605e8432b9df310032`~ - ~Update cometbls ref `5b33e3460932083218073f498bc9a15d68e17629`~ - Apply fix from cosmos/cosmos-sdk#18994 to `uniond/cmd/uniond/cmd/root.go` **Scope updated**: only apply root.go fix. Other changes to be handled in #1199
@julienrbrt bumping this for feedback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this ref also be set (if so, why?), or should theses tests be updated to ensure the context of the command is what is being updated.
I actually don't know the historical reason for having the reference updated. Maybe @alexanderbez knows.
Imho, your PR looks good as it. We should, however, document the slight behavior change of SetCmdServerContext
in a changelog.
@julienrbrt change log updated. Thanks for the feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Julien Robert <julien@rbrt.fr> (cherry picked from commit 3e05255) # Conflicts: # CHANGELOG.md
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Julien Robert <julien@rbrt.fr>
…os#19297) Co-authored-by: Connor Davis <17688291+PoisonPhang@users.noreply.github.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
Description
In attempting to get AutoCLI to respect the home flag, I found several opportunities to mitigate bugs or resolve potential issues. I've collected those changes here.
client/cmd.go
&server/util.go
cmd.SetContext(context.WithValue())
to update context ofcmd
client/config/config.go
WithKeyringDir(ctx.KeyringDir)
instead of forcing it to bectx.HomeDir
client/config/toml.go
tempDir()
againAuthor Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...