forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DRY Lambda/GCF FaaS targets (pantsbuild#18964)
This reduces duplication between the two FaaS packaging backends (https://en.wikipedia.org/wiki/Function_as_a_service, I didn't invent the name 😅 ): AWS Lambdas, and Google Cloud Functions. These are almost identical, with slight variations like the syntax for specifying the runtime version, whether they support `include_requirements` and how exactly they set up the handler file. Otherwise, they're both basically just "invoke PEX then Lambdex". This PR is basically just a move-and-adjust, with, theoretically, no functionality change, other than tweaks to error messages to avoid having to pass a bunch of different phrasings of user-facing strings around. This is refactoring in preparation for pantsbuild#18879: using the new PEX functionality to output non-Lambdex based artefacts. It felt better to start from a point of similarity. The commits are individually reviewable (the first is a little larger than it exactly needed to be, sorry!).
- Loading branch information
Showing
10 changed files
with
713 additions
and
1,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.