From 3050e6256f9312af0ace36d23b6b505f0b303447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jer=C3=B3nimo=20Albi?= Date: Fri, 27 Oct 2023 12:51:11 +0200 Subject: [PATCH] fix: correct invalid plugin hook check (#3716) * fix: correct invalid plugin hook check Co-authored-by: Tina Aliakbarpour <51127383+tinaaliakbarpour@users.noreply.github.com> * chore: update changelog --------- Co-authored-by: Tina Aliakbarpour <51127383+tinaaliakbarpour@users.noreply.github.com> --- changelog.md | 1 + ignite/cmd/plugin.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index b2f0f9c8bb..3c6ba3b648 100644 --- a/changelog.md +++ b/changelog.md @@ -35,6 +35,7 @@ - [#3631](/~https://github.com/ignite/cli/pull/3631) Fix unnecessary vue import in hooks/composables template - [#3655](/~https://github.com/ignite/cli/pull/3655) Re-enable TS client generation - [#3661](/~https://github.com/ignite/cli/pull/3661) Change `pkg/cosmosanalysis` to find Cosmos SDK runtime app registered modules +- [#3716](/~https://github.com/ignite/cli/pull/3716) Fix invalid plugin hook check ## [`v0.27.0`](/~https://github.com/ignite/cli/releases/tag/v0.27.0) diff --git a/ignite/cmd/plugin.go b/ignite/cmd/plugin.go index ab1170a6ee..eb51cfb319 100644 --- a/ignite/cmd/plugin.go +++ b/ignite/cmd/plugin.go @@ -233,7 +233,7 @@ func linkPluginHook(rootCmd *cobra.Command, p *plugin.Plugin, hook plugin.Hook) } }() - if preRun != nil { + if postCmd != nil { err := postCmd(cmd, args) if err != nil { // dont return the error, log it and let execution continue to `Run`