-
Notifications
You must be signed in to change notification settings - Fork 556
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
feat(app_v2): detect app wiring implementation #3434
Conversation
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.
I think checking against depinject.Inject
(which should always present in v2 of app.go) might be a better option instead of Compose. Because compose is only used if you are defining app configuration through a Go file, alternatively you can use the app.yml format and load it in Go but this way Compose'ing will be done in the yaml file, not by calling a Go function.
… finding the `depinject.Inject` declaration
@jeronimoalbi can you please review this one? |
There are a couple of network test failing but otherwise LGTM 👍 |
I think the reason tests fail is because SPN app format is V1, so there might be an issue in the detection process. |
* detect cosmos chain app wiring * check if the appconfig import exist * fix lint method comment * draft some changes to improve the var assign search with ast * improve the declaration search and find the app wiring implementation finding the `depinject.Inject` declaration * add changelog * add test data to a file * change the appImplementation method names to find the app.go * fix app.go search --------- Co-authored-by: İlker G. Öztürk <[email protected]>
Headline
Create a method to detect if the chain is using the app wiring trying to find the
depinject.Inject
declaration into theapp
package files