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

Archetype templates scoped model is merged with global model #877

Closed
romain-grecourt opened this issue Feb 1, 2023 · 0 comments · Fixed by #924
Closed

Archetype templates scoped model is merged with global model #877

romain-grecourt opened this issue Feb 1, 2023 · 0 comments · Fixed by #924
Assignees
Labels
3.x archetype bug Something isn't working
Milestone

Comments

@romain-grecourt
Copy link
Contributor

romain-grecourt commented Feb 1, 2023

When model is scoped under <templates> it should not be merged with the global model.

E.g.

global.xml:

<archetype-script>
  <output>
     <templates>
          <model>
              <value key="foo">foo1</value>
          </model>
      </templates>
  </output>
</archetype-script>

main.xml:

<archetype-script>
    <exec src="global.xml" />
    <output>
        <templates>
            <directory>.</directory>
            <includes>
                <include>**/*.mustache</include>
            </includes>
            <model>
                <value key="foo">foo2</value>
            </model>
        </templates>
    </output>
</archetype-script>

When resolving global model from main.xml, the value of foo should be foo1 and not foo2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x archetype bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants