cli icon indicating copy to clipboard operation
cli copied to clipboard

Blockchain init failed: unknown command "validate-genesis" for "exampled"

Open zarkone opened this issue 1 year ago • 1 comments

Describe the bug ignite network chain publish github.com/ignite/example fails with

Source code fetched
Blockchain set up
Chain's binary built
Blockchain initialized
✘ Blockchain init failed: unknown command "validate-genesis" for "exampled"
: exit status 1 

To reproduce Steps to reproduce the behavior:

  1. run ignite network chain publish github.com/ignite/example

What version are you using?

Ignite CLI version:		v28.3.0-dev
Ignite CLI build date:		undefined
Ignite CLI source hash:		undefined
Ignite CLI config version:	v1
Cosmos SDK version:		v0.50.5
Your OS:			linux
Your arch:			amd64
Your go version:		go version go1.22.1 linux/amd64
Your uname -a:			Linux fwlp 6.8.4 #1-NixOS SMP PREEMPT_DYNAMIC Thu Apr  4 18:25:06 UTC 2024 x86_64 GNU/Linux
Your cwd:			/home/zarkone/code/ignite-local-hello
Is on Gitpod:			false

ignite app list

Path 						Config 	Status 				
github.com/ignite/[email protected] 	global 	✔ Loaded 

... but same happens if I try to build fresh main @ e2572b5198f424c0f37c7001119ff416aff7302e

I quickly looked at https://github.com/ignite/cli/blob/e2572b5198f424c0f37c7001119ff416aff7302e/ignite/pkg/chaincmd/chaincmd.go#L461 and it seems the command is constructed properly, for quite a while already actually... So I've decided to check mabe I'm missing something obvious?

Thanks!

zarkone avatar Apr 10 '24 16:04 zarkone

I also experienced the same issue. It occurred with both v29nightly and v28 versions. It seems that the correct command is exampled genesis validate.

kdkcom1234 avatar May 08 '24 04:05 kdkcom1234

Yes correct, this is a known bug: https://github.com/ignite/cli-plugin-network/issues/27. We haven't got just yet at fixing it.

julienrbrt avatar May 08 '24 20:05 julienrbrt

Closing this as duplicate, but we'll make sure to fix that soon!

julienrbrt avatar May 08 '24 20:05 julienrbrt