Skip to content

Commit cf2d3c6

Browse files
Fixed regex to parse version in lambda package file (#2767)
Co-authored-by: Anton Pirker <[email protected]>
1 parent d4aab76 commit cf2d3c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.craft.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ targets:
88
pypi:sentry-sdk:
99
- name: github
1010
- name: aws-lambda-layer
11-
includeNames: /^sentry-python-serverless-\d+(\.\d+)*\.zip$/
11+
# This regex that matches the version is taken from craft:
12+
# https://github.com/getsentry/craft/blob/8d77c38ddbe4be59f98f61b6e42952ca087d3acd/src/utils/version.ts#L11
13+
includeNames: /^sentry-python-serverless-\bv?(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(?:-?([\da-z-]+(?:\.[\da-z-]+)*))?(?:\+([\da-z-]+(?:\.[\da-z-]+)*))?\b.zip$/
1214
layerName: SentryPythonServerlessSDK
1315
compatibleRuntimes:
1416
- name: python

0 commit comments

Comments
 (0)