ripe-gigabyte-88964
10/26/2023, 2:47 PMTargetRootsToFieldSets
- what am I missing here?
10:45:22.46 [ERROR] 1 Exception encountered:
Engine traceback:
in select
..
in plugins.splat.goals.my_plugin_goal
`my-plugin-goal` goal
Traceback (most recent call last):
File "/Users/nick.dellosa/Library/Caches/nce/4ce2ab7b680d1a68593ba94c1a1eb8a45d8b6cc2fd7c215163282f168119ea3d/bindings/venvs/2.18.0.dev7/lib/python3.9/site-packages/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/Users/nick.dellosa/Projects/data-platform/pants-plugins/plugins/myplugin/goals.py", line 385, in splat_deploy
target_roots_to_splat_deploy_field_sets = await Get(
File "/Users/nick.dellosa/Library/Caches/nce/4ce2ab7b680d1a68593ba94c1a1eb8a45d8b6cc2fd7c215163282f168119ea3d/bindings/venvs/2.18.0.dev7/lib/python3.9/site-packages/pants/engine/internals/selectors.py", line 118, in __await__
result = yield self
File "/Users/nick.dellosa/Library/Caches/nce/4ce2ab7b680d1a68593ba94c1a1eb8a45d8b6cc2fd7c215163282f168119ea3d/bindings/venvs/2.18.0.dev7/lib/python3.9/site-packages/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/Users/nick.dellosa/Library/Caches/nce/4ce2ab7b680d1a68593ba94c1a1eb8a45d8b6cc2fd7c215163282f168119ea3d/bindings/venvs/2.18.0.dev7/lib/python3.9/site-packages/pants/engine/internals/specs_rules.py", line 552, in find_valid_field_sets_for_target_roots
field_set_types=union_membership[request.field_set_superclass],
File "/Users/nick.dellosa/Library/Caches/nce/4ce2ab7b680d1a68593ba94c1a1eb8a45d8b6cc2fd7c215163282f168119ea3d/bindings/venvs/2.18.0.dev7/lib/python3.9/site-packages/pants/engine/unions.py", line 134, in __getitem__
return self.union_rules[union_type] # type: ignore[return-value]
File "/Users/nick.dellosa/Library/Caches/nce/4ce2ab7b680d1a68593ba94c1a1eb8a45d8b6cc2fd7c215163282f168119ea3d/bindings/venvs/2.18.0.dev7/lib/python3.9/site-packages/pants/util/frozendict.py", line 77, in __getitem__
return self._data[k]
KeyError: <class 'plugins.myplugin.targets.MyPluginFieldSet'>
ripe-gigabyte-88964
10/26/2023, 2:48 PMcurved-television-6568
10/26/2023, 2:58 PMripe-gigabyte-88964
10/26/2023, 3:46 PMTargetRootsToFieldSets
as opposed to just filtering from Targets
? I'm assuming it handles parametrization?ripe-gigabyte-88964
10/26/2023, 3:49 PMripe-gigabyte-88964
10/26/2023, 3:50 PMripe-gigabyte-88964
10/26/2023, 3:51 PMPackageFieldSet
and PublishFieldSet