Skip to content

Conversation

@aaronc
Copy link
Member

@aaronc aaronc commented Jun 4, 2024

Description

Closes: #20134

This adds support for using gogo types as module configuration objects so that modules that want to support appconfig do not need to use pulsar at all. Everything else works as it did before.


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...

  • included the correct type prefix in the PR title, you can find examples of the prefixes below:
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

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.

Please see Pull Request Reviewer section in the contributing guide for more information on how to review a pull request.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

Summary by CodeRabbit

  • New Features

    • Introduced support for defining appconfig module configuration types using github.com/cosmos/gogoproto/proto.
  • Bug Fixes

    • Improved handling and resolving of protobuf messages and module registration.
  • Documentation

    • Updated CHANGELOG.md to reflect new support for gogo proto configurations.
  • Chores

    • Added new dependency on github.com/cosmos/gogoproto v1.4.11 in go.mod.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 4, 2024

Warning

Rate limit exceeded

@aaronc has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 49 minutes and 40 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 9211087 and f370a1c.

Walkthrough

The changes introduce support for using github.com/cosmos/gogoproto/proto in addition to google.golang.org/protobuf/proto for protobuf message handling in the depinject package. This involves updates to function signatures, error handling, module registration, and configuration unmarshaling. Additionally, new test files and configuration files have been introduced to support this functionality.

Changes

Files Change Summaries
depinject/appconfig/config.go Modified protobuf handling, module registration, and error handling to use gogoproto.
depinject/appconfig/config_test.go Added new test imports and modified module configurations.
depinject/appconfig/dynamic_resolver.go Introduced dynamicTypeResolver for marshaling gogo proto messages.
depinject/appconfig/module.go Refactored RegisterModule function to use proto.Message for initialization.
depinject/internal/appconfig/buf.gen.yaml Updated go_package_prefix for proper versioning.
depinject/internal/appconfig/registry.go Replaced protobuf usages with gogoproto equivalents and renamed a function for module type handling.
depinject/internal/appconfiggogo/buf.gen.yaml Introduced configuration settings for versioning and plugin specifications.
depinject/internal/appconfiggogo/buf.yaml Added linting rules and versioning settings.
depinject/internal/appconfiggogo/testpb/test.proto Defined a new protobuf message TestModuleGogo with custom options.
depinject/CHANGELOG.md Documented the support for using gogoproto in module configurations.
depinject/go.mod Added github.com/cmos/gogoproto as a dependency.

Assessment against linked issues

Objective Addressed Explanation
Add gogo support to depinject allowing users to avoid generating pulsar types for simpler code.

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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.


// dynamic resolver allows marshaling gogo proto messages from the gogoproto.HybridResolver as long as those
// files have been imported before calling LoadJSON. There is similar code in autocli, this should probably
// eventually be moved into a library.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to refactor this code and the almost identical implementation in autocli to cosmos-proto possibly?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also move it to gogoproto because it uses the hybrid resolver and then call it here: https://github.com/cosmos/gogoproto/blob/6eec9731781bf8ec4feb0e4098ffb19ee74afb50/jsonpb/jsonpb.go#L792. So that gogoproto jsonpb.Unmarshal can be used to unmarshal v2 messages from json that contain some gogo proto messages in Any's.


import (
"fmt"
"reflect"

Check notice

Code scanning / CodeQL

Sensitive package import

Certain system packages contain functions which may be a possible source of non-determinism
@aaronc aaronc marked this pull request as ready for review June 5, 2024 18:50
@aaronc aaronc requested a review from a team June 5, 2024 18:50
@aaronc
Copy link
Member Author

aaronc commented Jun 5, 2024

This diff got pretty big because of gogoproto getting updated to v1.5.0, but maybe dependabot will open something to take care of that?

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

Outside diff range and nitpick comments (2)
depinject/internal/appconfig/registry.go (1)

20-20: Ensure ConfigProtoMessage is properly documented to clarify its usage.

Consider adding a comment above ConfigProtoMessage explaining its role within ModuleInitializer.

depinject/appconfig/dynamic_resolver.go (1)

79-79: Format the file according to Go standards using gofumpt.

Consider running gofumpt -extra to format the file as per Go standards.

Tools
golangci-lint

79-79: File is not gofumpt-ed with -extra (gofumpt)

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 80ba18e and 563dfed.

Files ignored due to path filters (57)
  • client/v2/go.mod is excluded by !**/*.mod
  • client/v2/go.sum is excluded by !**/*.sum
  • depinject/go.mod is excluded by !**/*.mod
  • depinject/go.sum is excluded by !**/*.sum
  • depinject/internal/appconfiggogo/testpb/test.pb.go is excluded by !**/*.pb.go
  • go.mod is excluded by !**/*.mod
  • go.sum is excluded by !**/*.sum
  • orm/go.mod is excluded by !**/*.mod
  • orm/go.sum is excluded by !**/*.sum
  • runtime/v2/go.mod is excluded by !**/*.mod
  • runtime/v2/go.sum is excluded by !**/*.sum
  • server/v2/cometbft/go.mod is excluded by !**/*.mod
  • server/v2/cometbft/go.sum is excluded by !**/*.sum
  • simapp/go.mod is excluded by !**/*.mod
  • simapp/go.sum is excluded by !**/*.sum
  • tests/go.mod is excluded by !**/*.mod
  • tests/go.sum is excluded by !**/*.sum
  • x/accounts/defaults/lockup/go.mod is excluded by !**/*.mod
  • x/accounts/defaults/lockup/go.sum is excluded by !**/*.sum
  • x/accounts/go.mod is excluded by !**/*.mod
  • x/accounts/go.sum is excluded by !**/*.sum
  • x/auth/go.mod is excluded by !**/*.mod
  • x/auth/go.sum is excluded by !**/*.sum
  • x/authz/go.mod is excluded by !**/*.mod
  • x/authz/go.sum is excluded by !**/*.sum
  • x/bank/go.mod is excluded by !**/*.mod
  • x/bank/go.sum is excluded by !**/*.sum
  • x/circuit/go.mod is excluded by !**/*.mod
  • x/circuit/go.sum is excluded by !**/*.sum
  • x/consensus/go.mod is excluded by !**/*.mod
  • x/consensus/go.sum is excluded by !**/*.sum
  • x/distribution/go.mod is excluded by !**/*.mod
  • x/distribution/go.sum is excluded by !**/*.sum
  • x/epochs/go.mod is excluded by !**/*.mod
  • x/epochs/go.sum is excluded by !**/*.sum
  • x/evidence/go.mod is excluded by !**/*.mod
  • x/evidence/go.sum is excluded by !**/*.sum
  • x/feegrant/go.mod is excluded by !**/*.mod
  • x/feegrant/go.sum is excluded by !**/*.sum
  • x/gov/go.mod is excluded by !**/*.mod
  • x/gov/go.sum is excluded by !**/*.sum
  • x/group/go.mod is excluded by !**/*.mod
  • x/group/go.sum is excluded by !**/*.sum
  • x/mint/go.mod is excluded by !**/*.mod
  • x/mint/go.sum is excluded by !**/*.sum
  • x/nft/go.mod is excluded by !**/*.mod
  • x/nft/go.sum is excluded by !**/*.sum
  • x/params/go.mod is excluded by !**/*.mod
  • x/params/go.sum is excluded by !**/*.sum
  • x/protocolpool/go.mod is excluded by !**/*.mod
  • x/protocolpool/go.sum is excluded by !**/*.sum
  • x/slashing/go.mod is excluded by !**/*.mod
  • x/slashing/go.sum is excluded by !**/*.sum
  • x/staking/go.mod is excluded by !**/*.mod
  • x/staking/go.sum is excluded by !**/*.sum
  • x/upgrade/go.mod is excluded by !**/*.mod
  • x/upgrade/go.sum is excluded by !**/*.sum
Files selected for processing (9)
  • depinject/appconfig/config.go (4 hunks)
  • depinject/appconfig/config_test.go (4 hunks)
  • depinject/appconfig/dynamic_resolver.go (1 hunks)
  • depinject/appconfig/module.go (2 hunks)
  • depinject/internal/appconfig/buf.gen.yaml (1 hunks)
  • depinject/internal/appconfig/registry.go (2 hunks)
  • depinject/internal/appconfiggogo/buf.gen.yaml (1 hunks)
  • depinject/internal/appconfiggogo/buf.yaml (1 hunks)
  • depinject/internal/appconfiggogo/testpb/test.proto (1 hunks)
Files skipped from review due to trivial changes (4)
  • depinject/internal/appconfig/buf.gen.yaml
  • depinject/internal/appconfiggogo/buf.gen.yaml
  • depinject/internal/appconfiggogo/buf.yaml
  • depinject/internal/appconfiggogo/testpb/test.proto
Additional context used
Path-based instructions (5)
depinject/internal/appconfig/registry.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

depinject/appconfig/dynamic_resolver.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

depinject/appconfig/module.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

depinject/appconfig/config.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

depinject/appconfig/config_test.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

golangci-lint
depinject/appconfig/dynamic_resolver.go

79-79: File is not gofumpt-ed with -extra (gofumpt)

depinject/appconfig/module.go

9-9: use of internal package cosmossdk.io/depinject/internal/appconfig not allowed (typecheck)

depinject/appconfig/config.go

19-19: use of internal package cosmossdk.io/depinject/internal/appconfig not allowed (typecheck)

depinject/appconfig/config_test.go

15-15: use of internal package cosmossdk.io/depinject/internal/appconfig not allowed (typecheck)

Additional comments not posted (1)
depinject/internal/appconfig/registry.go (1)

8-10: Consider consolidating imports to improve readability.

- gogoproto "github.com/cosmos/gogoproto/proto"
- protov2 "google.golang.org/protobuf/proto"
- "google.golang.org/protobuf/reflect/protoreflect"
+ gogoproto "github.com/cosmos/gogoproto/proto"
+ protov2 "google.golang.org/protobuf/proto"
+ "google.golang.org/protobuf/reflect/protoreflect"

Likely invalid or redundant comment.

Comment on lines +53 to +54
if _, ok := res[fullName]; ok {
return nil, fmt.Errorf("duplicate module registration for %s", fullName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handle potential duplicate module registration more gracefully.

Consider logging a warning or providing a mechanism to resolve conflicts instead of returning an error immediately.

Comment on lines +26 to +50
// ModulesByModuleTypeName should be used to retrieve modules by their module type name.
// This is done lazily after module registration to deal with non-deterministic issues
// that can occur with respect to protobuf descriptor initialization.
func ModulesByProtoMessageName() (map[protoreflect.FullName]*ModuleInitializer, error) {
res := map[protoreflect.FullName]*ModuleInitializer{}
func ModulesByModuleTypeName() (map[string]*ModuleInitializer, error) {
res := map[string]*ModuleInitializer{}

for _, initializer := range ModuleRegistry {
descriptor := initializer.ConfigProtoMessage.ProtoReflect().Descriptor()
fullName := descriptor.FullName()
if _, ok := res[fullName]; ok {
return nil, fmt.Errorf("duplicate module registration for %s", fullName)
// as of gogoproto v1.5.0 this should work with either gogoproto or golang v2 proto
fullName := gogoproto.MessageName(initializer.ConfigProtoMessage)

if desc, err := gogoproto.HybridResolver.FindDescriptorByName(protoreflect.FullName(fullName)); err == nil {
modDesc := protov2.GetExtension(desc.Options(), appv1alpha1.E_Module).(*appv1alpha1.ModuleDescriptor)
if modDesc == nil {
return nil, fmt.Errorf(
"protobuf type %s registered as a module should have the option %s",
fullName,
appv1alpha1.E_Module.TypeDescriptor().FullName())
}

if modDesc.GoImport == "" {
return nil, fmt.Errorf(
"protobuf type %s registered as a module should have ModuleDescriptor.go_import specified",
fullName,
)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor error handling to reduce duplication and improve clarity.

- if modDesc == nil {
-     return nil, fmt.Errorf(
-         "protobuf type %s registered as a module should have the option %s",
-         fullName,
-         appv1alpha1.E_Module.TypeDescriptor().FullName())
- }
- if modDesc.GoImport == "" {
-     return nil, fmt.Errorf(
-         "protobuf type %s registered as a module should have ModuleDescriptor.go_import specified",
-         fullName,
-     )
- }
+ if modDesc == nil || modDesc.GoImport == "" {
+     errMsg := "protobuf type %s registered as a module should have the option %s and ModuleDescriptor.go_import specified"
+     return nil, fmt.Errorf(errMsg, fullName, appv1alpha1.E_Module.TypeDescriptor().FullName())
+ }
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
// ModulesByModuleTypeName should be used to retrieve modules by their module type name.
// This is done lazily after module registration to deal with non-deterministic issues
// that can occur with respect to protobuf descriptor initialization.
func ModulesByProtoMessageName() (map[protoreflect.FullName]*ModuleInitializer, error) {
res := map[protoreflect.FullName]*ModuleInitializer{}
func ModulesByModuleTypeName() (map[string]*ModuleInitializer, error) {
res := map[string]*ModuleInitializer{}
for _, initializer := range ModuleRegistry {
descriptor := initializer.ConfigProtoMessage.ProtoReflect().Descriptor()
fullName := descriptor.FullName()
if _, ok := res[fullName]; ok {
return nil, fmt.Errorf("duplicate module registration for %s", fullName)
// as of gogoproto v1.5.0 this should work with either gogoproto or golang v2 proto
fullName := gogoproto.MessageName(initializer.ConfigProtoMessage)
if desc, err := gogoproto.HybridResolver.FindDescriptorByName(protoreflect.FullName(fullName)); err == nil {
modDesc := protov2.GetExtension(desc.Options(), appv1alpha1.E_Module).(*appv1alpha1.ModuleDescriptor)
if modDesc == nil {
return nil, fmt.Errorf(
"protobuf type %s registered as a module should have the option %s",
fullName,
appv1alpha1.E_Module.TypeDescriptor().FullName())
}
if modDesc.GoImport == "" {
return nil, fmt.Errorf(
"protobuf type %s registered as a module should have ModuleDescriptor.go_import specified",
fullName,
)
}
if modDesc == nil || modDesc.GoImport == "" {
errMsg := "protobuf type %s registered as a module should have the option %s and ModuleDescriptor.go_import specified"
return nil, fmt.Errorf(errMsg, fullName, appv1alpha1.E_Module.TypeDescriptor().FullName())
}

"google.golang.org/protobuf/proto"
"github.com/cosmos/gogoproto/proto"

internal "cosmossdk.io/depinject/internal/appconfig"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage of internal package not allowed.

The use of cosmossdk.io/depinject/internal/appconfig may lead to dependency issues or restrict the reusability of the package.

Tools
golangci-lint

9-9: use of internal package cosmossdk.io/depinject/internal/appconfig not allowed (typecheck)

appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1"

"cosmossdk.io/depinject"
internal "cosmossdk.io/depinject/internal/appconfig"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage of internal package not allowed.

The use of cosmossdk.io/depinject/internal/appconfig may lead to dependency issues or restrict the reusability of the package.

Tools
golangci-lint

19-19: use of internal package cosmossdk.io/depinject/internal/appconfig not allowed (typecheck)


"cosmossdk.io/depinject"
"cosmossdk.io/depinject/appconfig"
internal "cosmossdk.io/depinject/internal/appconfig"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage of internal package not allowed.

The use of cosmossdk.io/depinject/internal/appconfig may lead to dependency issues or restrict the reusability of the package.

Tools
golangci-lint

15-15: use of internal package cosmossdk.io/depinject/internal/appconfig not allowed (typecheck)

@aaronc
Copy link
Member Author

aaronc commented Jun 19, 2024

This PR needs another review and will make users lives easier.

Copy link
Contributor

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK
Can we get a chsngelog?

// Protobuf message types used for module configuration should define the
// cosmos.app.v1alpha.module option and must explicitly specify go_package
// to make debugging easier for users.
func RegisterModule(msg proto.Message, options ...Option) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why using any of we do a type check/cast just below. Cannot we just use the gogoproto.Message interface?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic I had was that we may want to support plan old go structs (not protobuf) eventually so one breaking change is better than two. When we discussed in architecture @tac0turtle said gogo is enough, although personally if people are annoyed with too much proto we should lower the barrier

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We okay to leave as is and merge this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense 👍

@aaronc
Copy link
Member Author

aaronc commented Jun 20, 2024

Added a CHANGELOG entry

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 563dfed and e543c0a.

Files ignored due to path filters (1)
  • depinject/go.sum is excluded by !**/*.sum
Files selected for processing (1)
  • depinject/CHANGELOG.md (1 hunks)
Additional context used
Path-based instructions (1)
depinject/CHANGELOG.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

LanguageTool
depinject/CHANGELOG.md

[uncategorized] ~31-~31: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ...## 1.0.0-alpha.x Depinject is still in alpha stage even though its API is already qu...

Additional comments not posted (1)
depinject/CHANGELOG.md (1)

27-27: The changelog entry clearly outlines the new feature. Good job maintaining clarity and linking directly to the PR for traceability.


## 1.0.0-alpha.x

Depinject is still in alpha stage even though its API is already quite stable.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding "the" before "alpha stage" to improve grammatical correctness.

- Depinject is still in alpha stage even though its API is already quite stable.
+ Depinject is still in the alpha stage even though its API is already quite stable.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Depinject is still in alpha stage even though its API is already quite stable.
Depinject is still in the alpha stage even though its API is already quite stable.
Tools
LanguageTool

[uncategorized] ~31-~31: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ...## 1.0.0-alpha.x Depinject is still in alpha stage even though its API is already qu...

@tac0turtle tac0turtle enabled auto-merge June 24, 2024 19:53
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between e543c0a and 9211087.

Files ignored due to path filters (1)
  • depinject/go.sum is excluded by !**/*.sum
Files selected for processing (1)
  • depinject/go.mod (1 hunks)
Files skipped from review due to trivial changes (1)
  • depinject/go.mod

depinject/go.mod Outdated
require (
cosmossdk.io/api v0.7.5
github.com/cosmos/cosmos-proto v1.0.0-beta.5
github.com/cosmos/gogoproto v1.4.11
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR uses gogoproto v1.5.0 so had to bump it back up

@tac0turtle tac0turtle added this pull request to the merge queue Jun 24, 2024
Merged via the queue into main with commit 0b35bce Jun 24, 2024
@tac0turtle tac0turtle deleted the aaronc/appconfig-gogo branch June 24, 2024 21:19
@julienrbrt
Copy link
Contributor

I am going to try to use this in a v0.50 chain and see what pops up.
As depinject imports api it may be fine in v0.50, but it won't work for sure in v0.47.
I'll try to make v0.50 use latest api as well to see what's up as well (as we'll eventually need to bump api in depinject)

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.

[Feature]: depinject with gogo

7 participants