ripe-cpu-85141
08/02/2022, 5:46 PMpy/projects/cards/ext-config/something
that will be used for generating files. The yaml files use the tutu
plugin that is under pants-plugins/
and I also added a .proto and a resource file not going through codegen for comparing.
If I use ./pants export-codegen ::
everything is generated. If I use ./pants package ::
, the lambda only gets the .py generated from the .proto file and the resource file.
% monorepants/dist/py.projects.cards% unzip -t lambda.zip
[...]
testing: PEX-INFO OK
testing: __main__.py OK
testing: ext-config/ OK
testing: ext-config/something/ OK
testing: ext-config/something/a-resource-file OK
testing: ext_config/ OK
testing: ext_config/something/ OK
testing: ext_config/something/something_pb2.py OK
testing: turbocorp/ OK
testing: turbocorp/cards/ OK
testing: turbocorp/cards/__init__.py OK
testing: turbocorp/cards/core/ OK
testing: turbocorp/cards/core/__init__.py OK
testing: turbocorp/cards/core/deck.py OK
testing: turbocorp/cards/entrypoint.py OK
testing: turbocorp/cards/game.py OK
testing: LAMBDEX-INFO OK
testing: lambdex_handler.py OK
No errors detected in compressed data of lambda.zip.
Does someone have an idea why my generated yaml files don't make it to the zip file?fast-nail-55400
08/02/2022, 6:13 PMfast-nail-55400
08/02/2022, 6:37 PMResourceSourceField
- since that is what the pex packaging goal requests from the engine. see https://github.com/pantsbuild/pants/blob/104f3e2e38aae724e8c7e570b3bf8a0874ecad7a/src/python/pants/backend/python/util_rules/pex_from_targets.py#L451-L452 and https://github.com/pantsbuild/pants/blob/f529095646173d577783a8f971226d391b3c169c/src/python/pants/backend/python/util_rules/python_sources.py#L[…]1ripe-cpu-85141
08/02/2022, 6:57 PMResourceSourceField
or is this something I should derive from?ripe-cpu-85141
08/02/2022, 7:04 PMPythonSourceField
which is a SingleSourceField
https://github.com/pantsbuild/pants/blob/104f3e2e38aae724e8c7e570b3bf8a0874ecad7a/src/python/pants/backend/python/target_types.py#L83
So I'm confused on the difference. 🤔fast-nail-55400
08/02/2022, 7:51 PMPythonSourceField
and ResourceSourceField
so anything that is convertible to either one of them can end up in a pex filefast-nail-55400
08/02/2022, 7:56 PMSo, should I put the type directly tojustor is this something I should derive from?ResourceSourceField
ResourceSourceField
for now is probably fine.ripe-cpu-85141
08/02/2022, 8:41 PM