-
Notifications
You must be signed in to change notification settings - Fork 569
feat: add include feature to the chain config file #4638
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
Visit the preview URL for this PR (updated for commit 796e7f6): https://igntservices-docs--pr4638-feat-include-config-xfktzpeh.web.app (expires Thu, 01 May 2025 06:04:54 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 95379efd94dd497aaa37c2d0354e6e2cafca5ec5 |
This feature is awesome! I'll take time to properly review after the break. |
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.
lgtm! great feature!
* feat: add include feature to the chain config file * improve logic * fix wrong var * add changlog * fix lint * fix lint and improve readbility * fix lint and add comments * fix comments --------- Co-authored-by: julienrbrt <julien@rbrt.fr> (cherry picked from commit af6b115) # Conflicts: # ignite/config/chain/base/config.go # ignite/config/chain/parse.go # ignite/config/chain/parse_test.go
…4650) * feat: add include feature to the chain config file (#4638) * feat: add include feature to the chain config file * improve logic * fix wrong var * add changlog * fix lint * fix lint and improve readbility * fix lint and add comments * fix comments --------- Co-authored-by: julienrbrt <julien@rbrt.fr> (cherry picked from commit af6b115) # Conflicts: # ignite/config/chain/base/config.go # ignite/config/chain/parse.go # ignite/config/chain/parse_test.go * fix conflicts * go mod tidy --------- Co-authored-by: Danilo Pantani <danpantani@gmail.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
Great , amazing work. Its documented well: https://docs.ignite.com/references/config#include |
close #4527
Description
In your main
config.yml
, use theinclude
field to reference other local or remote YAML files.It allows you to split your chain configuration across multiple files, making it easier to manage and reuse configuration parts.
Include remote files via URL or server path are also valid:
Common Use Cases:
Split your config into a base setup and an external
accounts.yml
for better separation of concerns:config.yml
accounts.yml