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

init --config doesn't work with multiple config files #4291

Closed
trevormil opened this issue Aug 7, 2024 · 0 comments · Fixed by #4323
Closed

init --config doesn't work with multiple config files #4291

trevormil opened this issue Aug 7, 2024 · 0 comments · Fixed by #4323
Assignees
Labels
type:error Something isn't working

Comments

@trevormil
Copy link

Describe the bug
I was initializing my chain with ignite init and the --config config.testnet.yml flag. I have both a config.yml and a config.testnet.yml. It would always default to the config.yml file even with the flag.

Note: I was eventually running the chain manually (not via serve), but even before I ran it, the genesis.json being created would always be for config.yml.

To reproduce
Steps to reproduce the behavior:

  1. Initialize an Ignite chain.
  2. Create a config.testnet.yml with slightly different parameters like a diff chain ID
  3. Try to initialize it with ignit init --config config.testnet.yml
  4. See the outputted genesis.json in the config folder, and it will be for the normal config.yml

What version are you using?
28.5.1

Provide the output of the ignite version command.
⬆️ Ignite CLI v28.5.1 is available! To upgrade: https://docs.ignite.com/welcome/install#upgradeIgnite CLI version: v28.5.0
Ignite CLI build date: 2024-07-15T19:34:07Z
Ignite CLI source hash: 9698827
Ignite CLI config version: v1
Cosmos SDK version: v0.50.8
Your OS: linux
Your arch: amd64
Your go version: go version go1.22.5 linux/amd64
Your uname -a: Linux trevormil-server 6.5.0-45-generic #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 15 16:40:02 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Your cwd: /home/trevormil/bitbadges/bitbadgeschain
Is on Gitpod: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:error Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants