Skip to content

Conversation

@ava-silver
Copy link
Contributor

@ava-silver ava-silver commented Jan 7, 2026

What and why?

Fixes an error where the default arguments error for custom runtime functions. Now, we check for a specified layer number rather than specifically "none" so the default value or "none" or "latest" don't error.

How?

A brief description of implementation details of this PR.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ava-silver ava-silver marked this pull request as ready for review January 7, 2026 19:06
@ava-silver ava-silver requested review from a team as code owners January 7, 2026 19:06
@ava-silver ava-silver added bug Something isn't working serverless Related to [aas, cloud-run, lambda, stepfunctions] labels Jan 7, 2026

if (runtimeType === RuntimeType.CUSTOM) {
if (settings.layerVersion !== 'none') {
if (typeof settings.layerVersion === 'number') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to add a test for this?

@ava-silver ava-silver merged commit 3ffdefc into master Jan 7, 2026
26 checks passed
@ava-silver ava-silver deleted the ava.silver/svls-8267/fix-error-on-unspecified-runtime branch January 7, 2026 20:25
@ava-silver ava-silver mentioned this pull request Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working serverless Related to [aas, cloud-run, lambda, stepfunctions]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants