-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: prevent nil lastcommitid hash #18563
Conversation
Important Auto Review SkippedAuto reviews are disabled on base/target branches other than the default branch. Please add the base/target branch pattern to the list of additional branches to be reviewed in the settings. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the TipsChat with CodeRabbit Bot (
|
This comment has been minimized.
This comment has been minimized.
Right, but we still need a follow-up in main as well for the baseapp changes. Can we get a store changelog entry? (not sure if we require a sdk one as the behavior will be the same). Store tests are failing as well with this new behavior. About the replace, can we get a comment next to the go.mod import, so we don't forget before tagging v0.50.1 that store needs to be tagged before. |
ill tag 1.1 after this merge then remove go.mod and update it on main |
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, I like this solution more 👌
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.
Makes sense, maybe we should double check people don't have custom logic doing a CommitID().Hash == nil
somewhere in their code base.
There's the |
store/rootmulti/store.go
Outdated
return types.CommitInfo{StoreInfos: storeInfos}.Hash() | ||
apphash := types.CommitInfo{StoreInfos: storeInfos}.Hash() | ||
|
||
if len(apphash) == 0 { |
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.
this checking also would be unnecessary
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.
ditto -- unnecessary
store/rootmulti/store.go
Outdated
return types.CommitInfo{StoreInfos: storeInfos}.Hash() | ||
apphash := types.CommitInfo{StoreInfos: storeInfos}.Hash() | ||
|
||
if len(apphash) == 0 { |
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.
ditto -- unnecessary
Description
this pr is an alternative to #18524 that prevents nil apphash in store instead of higher up.
This pr is against release/0.50.x instead of main since store/v1 does not exist in main any longer
Author 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...
!
to the type prefix if API or client breaking changeCHANGELOG.md
make lint
andmake test
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...
!
in the type prefix if API or client breaking change