From fa5cf61a1c32ab45bbef55d01e83436510beacae Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Sun, 6 Aug 2023 14:12:44 +1000 Subject: [PATCH] Register the `python_aws_lambda_layer` target type (#19550) This ensures the `python_aws_lambda_layer` target type exists when activating the `pants.backend.awslambda.python` backend. This was missed from #19123, oops! --- src/python/pants/backend/awslambda/python/register.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/pants/backend/awslambda/python/register.py b/src/python/pants/backend/awslambda/python/register.py index f34e5ce17e8..3b9cf239f0e 100644 --- a/src/python/pants/backend/awslambda/python/register.py +++ b/src/python/pants/backend/awslambda/python/register.py @@ -7,7 +7,7 @@ """ from pants.backend.awslambda.python import rules as python_rules -from pants.backend.awslambda.python.target_types import PythonAWSLambda +from pants.backend.awslambda.python.target_types import PythonAWSLambda, PythonAWSLambdaLayer from pants.backend.awslambda.python.target_types import rules as target_types_rules from pants.backend.python.subsystems import lambdex @@ -17,4 +17,4 @@ def rules(): def target_types(): - return [PythonAWSLambda] + return [PythonAWSLambda, PythonAWSLambdaLayer]