-
Notifications
You must be signed in to change notification settings - Fork 11
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
Multiple Include in the same level #42
Comments
Remember Emrichen works within the YAML data model. You are constructing a dict with the key Another issue: "stuck and hang" is because there is no template file in your Try this: 1.ymla: 5
b: 6 2.ymlb: 7
c: 8 ab.ymlab: !Merge
- !Include 1.yml
- !Include 2.yml Here
ab: !Merge
- a: 5
b: 6
- b: 7
c: 8 and finally the output should be ab:
a: 5
b: 7
c: 8 I assume this is what you wanted to do? Please close if this solved your problem. |
Thanks! Yes, my output supposed to be:
I tried to use the
But I kept getting I'm using the library for concourse pipeline generation, for example, I've many resources that repeat but can be templatized like:
And
And in pipeline.yaml, I do:
And it produces the result as:
|
I checked the example I gave, it works. No |
Thanks @japsu and @akx ! I've tried using that option while it accepts multiple files with glob. However it still doesn't support concourse resource pipeline use case. So I created a repo with examples where it's failing: https://github.com/jbek7/emrichen-concourse-use-case |
Thanks @jbek7 for an excellent example. This is fixed easily by changing So this resources:
!IncludeGlob ./resources/*.in.yaml becomes this resources:
!Concat,IncludeGlob ./resources/*.in.yaml and now |
Awesome!! I overlooked Concat tag. Thanks a lot, @japsu !! |
Consider this, a.yml:
And b.yml:
Template ab.yml:
emrichen -f ab.yml
is stuck and hangs.But expected, ab.yml:
It might be related to this #20
The text was updated successfully, but these errors were encountered: