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

feat(tools): auto migrate dependency tools #3505

Merged
merged 19 commits into from
May 23, 2023
Merged

feat(tools): auto migrate dependency tools #3505

merged 19 commits into from
May 23, 2023

Conversation

Pantani
Copy link
Collaborator

@Pantani Pantani commented May 15, 2023

close #3503

Description

The tools package changes in the new SDK update and need new imports. This PR creates a feature to check what is missing and what is not used and asks if the user wants to migrate these imports.

How to test

Scaffold a chain with an old version and build with this PR version. Or you make the chain with the current version and change the tools imports manually.

@Pantani Pantani self-assigned this May 15, 2023
@Pantani Pantani marked this pull request as ready for review May 16, 2023 12:31
ignite/cmd/chain.go Outdated Show resolved Hide resolved
ignite/cmd/chain.go Outdated Show resolved Hide resolved
ignite/cmd/chain.go Outdated Show resolved Hide resolved
Pantani and others added 5 commits May 17, 2023 17:35
Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>
Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>
Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>
Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>
jeronimoalbi
jeronimoalbi previously approved these changes May 17, 2023
Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>
@Pantani Pantani requested a review from jeronimoalbi May 19, 2023 00:12
@ilgooz ilgooz merged commit b543016 into main May 23, 2023
@ilgooz ilgooz deleted the feat/migrate-tools branch May 23, 2023 11:29
@ilgooz
Copy link
Member

ilgooz commented May 23, 2023

Great PR!

Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
* create method to update go imports into a go file

* add tools helpers

* add migration pre handler

* fix the method to update tools import

* uncomment migrations questions

* add changelog

* idente ignite/pkg/cosmosgen/install_test.go tests

Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>

* fix ignite/cmd/chain.go mesages

Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>

* fix ignite/cmd/chain.go remove msg

Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>

* ident ignite/pkg/cosmosgen/install_test.go

Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>

* fix double ? in the ask question and improve comments

* use io.writer intead return a byte array to goanalysis.UpdateInitImports method

* fix goanalysis test package name

* Update ignite/cmd/chain.go vars

Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>

* run gofmt

---------

Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>
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.

Backwards compatibility with v0.26.1
3 participants