aws-sam-cli icon indicating copy to clipboard operation
aws-sam-cli copied to clipboard

Feature request: Add `dotnet` BuildMethod in addition to `dotnet7`

Open Beau-Gosse-dev opened this issue 1 year ago • 3 comments

Describe your idea/feature/enhancement

There is a custom build method called donet7 shown here: https://github.com/aws/aws-sam-cli/blob/9f956dfa7760c50b86f79c1d86bef5a1b61e9e6f/samcli/lib/build/workflow_config.py#L150

This command isn't really specific to version 7 of .NET since it just calls into the underlying Lambda Builder for dotnet in general and the AWS extensions for the .NET CLI figures out what version of .NET it's building.

Proposal

dotnet7 could be replaced with dotnet to allow future custom runtime/provided runtime builds for .NET 9 and other non-Lambda supported .NET runtimes. However, to keep backwards compatibility, we could instead just add dotnet as a build method in addition to dotnet7

Things to consider:

  1. Will this require any updates to the SAM Spec - No it should not
  2. Will this require updates to the docs? - I'm not sure, but I can't seem to find dotnet7 mentioned in the docs

Additional Details

Here is the CR for when dotnet7 was added: https://github.com/aws/aws-sam-cli/pull/4410/files

Beau-Gosse-dev avatar Sep 10 '24 23:09 Beau-Gosse-dev

I can try to find time to implement this if you think it makes sense and don't see any potential problems with it.

Beau-Gosse-dev avatar Sep 10 '24 23:09 Beau-Gosse-dev

Thanks @Beau-Gosse-dev for the feature request. Let me check with the team and get back to you.

hnnasit avatar Sep 11 '24 15:09 hnnasit

Hello @Beau-Gosse-dev, I checked with the team and they seem fine with the idea. Feel free to work on the feature request.

hnnasit avatar Sep 19 '24 18:09 hnnasit

Closing as the change was release as part of SAM CLI version 1.127.0. Thanks for your contributions!

hnnasit avatar Oct 30 '24 21:10 hnnasit

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Oct 30 '24 21:10 github-actions[bot]