Skip to content

Conversation

RR5555
Copy link
Contributor

@RR5555 RR5555 commented Aug 5, 2025

This PR

Check the current behaviour of copier.

Add a test to check that "nested include paths are all relative to copier.yml", and its converse test to check that includes relative to each other and not to copier.yaml does not work.

(Was proposed as a result of: Refs: #2251#pullrequestreview-3076712643)

Possible future change

In the case, it is decided, in the future, that the converse makes more sense, and thus, becomes the desideratum, moving the not from one test to the other would be enough to validate the converse and invalidate the current.

RR5555 added 3 commits August 5, 2025 21:48
…scluded files

Also add the demo files for the test in `tests/demo_nested_transcludes`.
When nested transcluded files are populated, the transclusion will result in a failure of the type:
```bash
E           yaml.composer.ComposerError: expected a single document in the stream
E             in "<byte string>", line 2, column 1:
E               !include ../copier_files/nested/ ...
E               ^
E           but found another document
E             in "<byte string>", line 3, column 1:
E               ---
E               ^
```
Changed from `demo_nested_trancludes` to `demo_transclude_nested`
Per review request. Note that if it is decided that pure path relativity is better, one just has to reverse the tests.

Refs: copier-org#2251#pullrequestreview-3076712643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant