-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Support packaging with an inherited CodeUri from Globals #3391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3391 +/- ##
===========================================
- Coverage 94.4% 94.39% -0.02%
===========================================
Files 169 169
Lines 13223 13231 +8
===========================================
+ Hits 12483 12489 +6
- Misses 740 742 +2
Continue to review full report at Codecov.
|
|
Okay, looks like I'm going to need a test or two to maintain the test coverage |
|
@bmoller any updates on this? |
|
Any chance this will be supported soon? |
|
Thanks for the PR! @sanathkr can you please review this? |
|
Hi, |
|
Any chance this PR or the underlying bug could get looked at? |
|
Apologies to everyone for the delayed response. The PR branch will need to be rebased onto the latest As a side note, our team just put out a contribution guide detailing improvements to the contribution process. I'll be putting this PR in the "Implementation" stage of our project board. Once a rebase is completed and tests are added, we can go ahead and mark this as "Ready for Review", where a maintainer will do a closer review. |
|
Checking in — as mentioned in the earlier comment, this PR would need to be rebased and have tests added before further review. I'm closing the PR as there hasn't been any further activity here in the last several months. |
This supports #3376 describing what seems to be incorrect behavior.
The SAM specs state that
CodeUriis a valid global for theAWS::Serverless::Functionresource type. I would expect then that if I defineCodeUriin my template's globals that theaws cloudformation packagecommand would use that value and package my code using the global value.This does not appear to be the current behavior. I added a check for globals just before iterating through a template's resources, and modified the
AWS::Serverless::Functionresource type to support missingCodeUriproperties.