proud-dentist-22844
06/08/2021, 9:51 PMconfig.schema.yaml
file):
https://github.com/st2sandbox/st2/tree/pants/st2tests/st2tests/fixtures/packs
For the tests that use individual fixtures, I can import from a python file in the pack's subdir to make pants include the fixture.
Is there a way to have a generic target that depends on all the targets with a */config.schema.yaml
file (the globs vary slightly, but the one I linked to above is looking for fixture packs that include this file)?
If so, I could probably have another subdir (maybe called config_schema_glob
) that says it depends on all such targets.
If not, any good ideas on how to make this pants-friendly?witty-crayon-22786
06/08/2021, 9:55 PMconfig.schema.yaml
files, and then explicitly add a dep on that files
target to the code that depends on itwitty-crayon-22786
06/08/2021, 9:59 PMfiles
target and the python_tests
target in one invoke: https://www.pantsbuild.org/docs/macroshappy-kitchen-89482
06/08/2021, 10:00 PMproud-dentist-22844
06/09/2021, 12:35 AMproud-dentist-22844
06/09/2021, 12:37 AMconfig.schema.yaml
files, I also need everything else in the current target that includes that file.proud-dentist-22844
06/09/2021, 12:39 AMproud-dentist-22844
06/09/2021, 2:52 AMtarget
but it seems to be the simplest approach.
https://github.com/st2sandbox/st2/commit/4fc6347d6d4812610e2fc6560362e1568cd3c8f4#diff-0a765a0e1409bcce280bee085b[…]219b4c63a442696f8d23216a525d882a