@@ -8,6 +8,9 @@ The plugins here add custom goals or other logic into pants.
88
99To see available goals, do "./pants help goals" and "./pants help $goal".
1010
11+ These StackStorm-specific plugins might be useful in other StackStorm-related repos.
12+ - ` pack_metadata `
13+
1114These StackStorm-specific plugins are probably only useful for the st2 repo.
1215- ` api_spec `
1316- ` sample_conf `
@@ -26,6 +29,26 @@ This plugin also wires up pants so that the `lint` goal runs additional
2629api spec validation on ` st2common/st2common/openapi.yaml ` with something
2730like ` ./pants lint st2common/st2common/openapi.yaml ` .
2831
32+ ### ` pack_metadata ` plugin
33+
34+ This plugin adds two new targets to pants:
35+ - ` pack_metadata `
36+ - ` pack_metadata_in_git_submodule `
37+
38+ These targets include all StackStorm pack metadata files in a pack.
39+ Pack metadata includes top-level files (` pack.yaml ` , ` <pack>.yaml.examle ` ,
40+ ` config.schema.yaml ` , and ` icon.png ` ) and metadata (` *.yaml ` , ` *.yml ` )
41+ for actions, action-aliases, policies, rules, and sensors.
42+
43+ This plugin also wires up the ` tailor ` goal, so that it will add a
44+ ` pack_metadata(name="metadata") ` target wherever it finds a ` pack.yaml ` file.
45+
46+ One of the packs in this repo is in a git submodule to test our handling
47+ of git submodules (` st2tests/st2tests/fixtures/packs/test_content_version ` ).
48+ If it is not checked out, then some of the tests will fail.
49+ If it is not checked out, ` pack_metadata_in_git_submodule ` handles providing
50+ a helpful, instructive error message as early as possible.
51+
2952### ` sample_conf ` plugin
3053
3154This plugin wires up pants to make sure ` conf/st2.conf.sample ` gets
0 commit comments