-
Notifications
You must be signed in to change notification settings - Fork 112
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
Tags do not apply to included files #164
Comments
Thanks for this report! I vote for the recursive approach because it's the most intuitive one. I can work on a fix. |
fcsonline
added a commit
that referenced
this issue
Feb 1, 2023
It seems that items that were included with the `include` directive and contains tags, they are ignored. Trying to fix this. Issue: #164
Not able to battle test this changes but I think it fixes the issue. It would be awesome to add some tests for it. |
fcsonline
added a commit
that referenced
this issue
Feb 1, 2023
It seems that items that were included with the `include` directive and contains tags, they are ignored. Trying to fix this. Issue: #164
fcsonline
added a commit
that referenced
this issue
Feb 6, 2023
It seems that items that were included with the `include` directive and contains tags, they are ignored. Trying to fix this. Issue: #164
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried defining a top-level file to combine requests from multiple files like this:
I found that tags in
file1.yaml
andfile2.yaml
are ignored. Running with--tags example1
doesn't include theis_tagged
action fromfile1.yaml
(it includes nothing).I had a play with the code and it's because the tag system operates on the unexpanded YAML and expects tags on top-level items only, here:
drill/src/tags.rs
Lines 29 to 55 in f7627bf
As a workaround I'm grouping my include files by their tags like this:
Figured I would document this here so that this behaviour is known. If we wanted to codify it maybe
tags
on included files could be rejected when loading/parsing? Alternatively, the tag system could be extended to work with recursively included files.Related: #132
The text was updated successfully, but these errors were encountered: