-
Notifications
You must be signed in to change notification settings - Fork 563
feat(network): disable create command for Launchpad apps #586
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
Conversation
I like this functionality, but how do we detect Launchpad/Stargate? Am I correct in understanding that we check for Tendermint's version? https://github.com/tendermint/starport/blob/develop/starport/pkg/cosmosver/cosmosver.go#L25 If it's |
@fadeev yep, that' correct. But we can improve this further by checking for Cosmos version to be |
The issue I have with this approach is that a chain can have Tendermint <= v0.33, but use commit hash of a newer version. I believe it's dangerous to prevent Starport from trying to build a chain. It might be better to try and fail, and then explain the failure than not trying in the first place. |
Checking docs to confirm,it seems that pseudo versions constructed by using the latest tag available in the repo. Considering this, we should never face with a version like On the other hand, we can still first try to |
instead of comparing by == we now compare by >= which makes it possible to determine versions of even newer sdk releases.
I've just switched to |
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.
Great! I would replace the error message with:
Error: Starport doesn't support Cosmos SDK Launchpad blockchains.
# By vms (85) and others # Via GitHub (23) and others * https://github.com/tendermint/starport: (276 commits) refactor: use a fixed-name dir for Starport Network chain sources (ignite#597) Update devices.yml (ignite#616) refactor: set chaincmd commands as version agnostic (ignite#614) feature(network): show errors from appd binary (ignite#506) refactor: use stable version of Starport in docs (ignite#610) refactor: package for blockchain application commands (ignite#583) refactor: cleanup home files (ignite#595) feat(pkg/gomodulepath): add tests for paths with versions docs: install.md (ignite#602) fix: semantic-pr fix: determining version number in go paths (ignite#598) docs: update readme with a link to v0.13 video (ignite#593) diable snapcraft ap get update fix: changelog small fix (ignite#588) Update changelog.md (ignite#587) feat(network): disable create command for Launchpad apps (ignite#586) refactor(docs): change 'pulling blockchain' to 'fetching source code' (ignite#585) Update version of tendermint/vue (ignite#582) fix: integration tests (ignite#581) ... # Conflicts: # .github/workflows/pi-image.yml # .pi/starport.json # go.mod # go.sum # starport/templates/app/launchpad/.github/workflows/build.yml.plush # starport/templates/app/launchpad/.github/workflows/pi.yml.plush # starport/templates/app/launchpad/.pi/image.bash.plush # starport/templates/app/launchpad/.pi/pibuild.json.plush # starport/templates/app/launchpad/.pi/{{appName}}d.service.plush # starport/ui/package-lock.json
* feat(network): disable create command for Launchpad apps fixes ignite#584. * improve sdk version detection logic instead of comparing by == we now compare by >= which makes it possible to determine versions of even newer sdk releases. * fix lowered sdk version to v0.39.99 to be able to support rc versions of v0.40.0. * docs
fixes #584.