Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 24, 2025

close #4527

Description

In your main config.yml, use the include 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.

version: 1
include:
  - "./accounts.yml"
  - "./validators.yml"

Include remote files via URL or server path are also valid:

version: 1
include:
  - "localhost:3045/accounts.yml"
  - "https://ignite.com/config/validators.yml"

Common Use Cases:

Split your config into a base setup and an external accounts.yml for better separation of concerns:

  • config.yml
version: 1
include:
  - "./accounts.yml"
client:
  typescript:
    path: ts-client
  • accounts.yml
accounts:
  - name: alice
    coins:
      - 20000token
      - 200000000stake
  - name: bob
    coins:
      - 20000token
      - 200000000stake
faucet:
  name: alice
  coins:
    - 5token
    - 100000stake

This is an automatic backport of pull request #4638 done by [Mergify](https://mergify.com).

* 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
Copy link
Contributor Author

mergify bot commented Apr 24, 2025

Cherry-pick of af6b115 has failed:

On branch mergify/bp/release/v28.x.y/pr-4638
Your branch is up to date with 'origin/release/v28.x.y'.

You are currently cherry-picking commit af6b115e.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   changelog.md
	modified:   docs/docs/08-references/02-config.md
	new file:   ignite/config/chain/testdata/include1.yml
	new file:   ignite/config/chain/testdata/include2.yml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   ignite/config/chain/base/config.go
	both modified:   ignite/config/chain/parse.go
	both modified:   ignite/config/chain/parse_test.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@github-actions github-actions bot added component:docs Documentation additions or improvements. component:ci CI/CD workflow and automated jobs. component:configs type:internal labels Apr 24, 2025
Copy link
Contributor

github-actions bot commented Apr 24, 2025

Visit the preview URL for this PR (updated for commit 89fc1a2):

https://igntservices-docs--pr4650-mergify-bp-release-v-jyla0utv.web.app

(expires Thu, 01 May 2025 13:54:23 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 95379efd94dd497aaa37c2d0354e6e2cafca5ec5

@julienrbrt julienrbrt merged commit f785e63 into release/v28.x.y Apr 24, 2025
39 of 43 checks passed
@julienrbrt julienrbrt deleted the mergify/bp/release/v28.x.y/pr-4638 branch April 24, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:ci CI/CD workflow and automated jobs. component:configs component:docs Documentation additions or improvements. type:internal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants