Skip to content

Commit

Permalink
Mark python_aws_lambda_layer as packageable (#19562)
Browse files Browse the repository at this point in the history
In yet more follow up to #19123 and #19550 for #18880, this ensures the
`PythonAwsLambdaLayerFieldSet` is part of the `PackageFieldSet` union,
so that `pants package path/to:some-layer` actually works.

I clearly didn't test this properly in #19123 or #19550, but now I have:
in a separate repo `PANTS_SOURCE=~/... pants package path/to:some-layer`
produces `dist/path.to/some-layer.zip`, with the expected contents. 🎉
  • Loading branch information
huonw authored Aug 8, 2023
1 parent f725cb6 commit e045ed5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/python/pants/backend/awslambda/python/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,6 @@ def rules():
return [
*collect_rules(),
UnionRule(PackageFieldSet, PythonAwsLambdaFieldSet),
UnionRule(PackageFieldSet, PythonAwsLambdaLayerFieldSet),
*faas_rules(),
]

0 comments on commit e045ed5

Please sign in to comment.