Repository navigation
feat: add init templates for dotnet10 - #537
Conversation
cf2bfc9 to
3d33bd2
Compare
| sam build does not support to build dotnetcore 3.1 templates using container, | ||
| here we put them in a separate file and use a dedicate codebuild project with .net 3.1 runtime to build them. |
There was a problem hiding this comment.
Is this comment relevant still? It looks outdated
| file: 'tests/integration/unit_test/test_unit_test_dotnet10.py' | ||
| # - version: '10' | ||
| # type: 'Invoke' | ||
| # file: 'tests/integration/build_invoke/dotnet/test_build_invoke_dotnet10.py' |
There was a problem hiding this comment.
Why are we not fully adding this? Do these test not work?
There was a problem hiding this comment.
Invoke test depends on sam cli. Without merging dotnet10 support into aws-sam-cli develop branch, this test will fail. We will enable it after sam cli adds dotnet10 support.
| - version: '3.14' | ||
| type: 'Invoke' | ||
| file: 'tests/integration/build_invoke/python/test_python_3_14.py' | ||
| # - version: '3.14' |
There was a problem hiding this comment.
| # - version: '3.14' | |
| # - version: '3.14' - TODO: Re-enable the test once SAM-T support python 3.14 |
| - version: '10' | ||
| type: 'Test' | ||
| file: 'tests/integration/unit_test/test_unit_test_dotnet10.py' | ||
| # - version: '10' |
There was a problem hiding this comment.
| # - version: '10' | |
| # - version: '10' TODO: To re-enable when SAM CLI support dotNet 10 |
| { | ||
|
|
||
| /// <summary> | ||
| /// A simple function that takes a string and does a ToUpper |
There was a problem hiding this comment.
The description is not what the fuction is doing.
| @@ -0,0 +1,2 @@ | |||
| [install] | |||
| prefix= No newline at end of file | |||
There was a problem hiding this comment.
Is this suppose to be like this?
| RUN if [ "$SAM_BUILD_MODE" = "debug" ]; then dotnet lambda package --configuration Debug; else dotnet lambda package --configuration Release; fi | ||
| RUN if [ "$SAM_BUILD_MODE" = "debug" ]; then cp -r /build/bin/Debug/net10.0/publish/* /build/build_artifacts; else cp -r /build/bin/Release/net10.0/publish/* /build/build_artifacts; fi | ||
|
|
||
| FROM public.ecr.aws/lambda/dotnet:8 |
| @@ -0,0 +1,23 @@ | |||
| FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-image | |||
|
It looks like we need to update Maven to 3.9.12 :/ (or find a different URL for Maven 3.9.11, but it's not under https://dlcdn.apache.org/maven/maven-3/ ) |
Fixed |
Issue #, if available:
Description of changes:
add init templates for dotnet10 runtime
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.