Defining a variable to use in multiple build files #20697
-
I am looking at using Pants to manage a monorepo at work that primarily works with lambdas. I am facing this issue: #15454 where boto3, boto3-stubs etc. are included in the lambda zip file. I found a workaround in some issue that I lost track of that essentially boils down to something like this:
Since I want to ignore a set of dependencies across all of the lambdas I was hoping to define the dependencies to ignore somewhere "globally" and reference them in each BUILD file. Is that an option? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you tried doing this with a macro: https://www.pantsbuild.org/2.19/docs/writing-plugins/macros |
Beta Was this translation helpful? Give feedback.
Have you tried doing this with a macro: https://www.pantsbuild.org/2.19/docs/writing-plugins/macros