add packs_glob pants target
@@ -17,6 +17,7 @@ from pants.engine.target import COMMON_TARGET_FIELDS, Dependencies
from pants.core.target_types import (
ResourcesGeneratingSourcesField,
ResourcesGeneratorTarget,
+ GenericTarget,
)
@@ -77,3 +78,14 @@ class PackMetadataInGitSubmodule(PackMetadata):
"has unmatched globs. It prints instructions on how to checkout git "
"submodules."
)
+
+
+class PacksGlob(GenericTarget):
+ alias = "packs_glob"
+ core_fields = (*COMMON_TARGET_FIELDS, Dependencies)
+ help = (
+ "Packs glob.\n\n"
+ "Avoid using this target. It gets automatic dependencies on all "
+ "subdirectories (packs) except those listed with ! in dependencies. "
+ "This is unfortunately needed by tests that use a glob to load pack fixtures."
+ )
