-
Notifications
You must be signed in to change notification settings - Fork 26
chore: Remove dependency of AWS.Lambda.Powertools.Common on all Utilities #340
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
chore: Remove dependency of AWS.Lambda.Powertools.Common on all Utilities #340
Conversation
…ities. Create a Compile Include Link from AWS.Lambda.Powertools.Common files to all utilities csproj. Add a reference to AspectInjector
Signed-off-by: Henrique Graca <[email protected]>
After some conversations with @amirkaws and his feedback, I have made some changes to the implementation. TLDR:
ImplementationPart 1
|
…s. Update nuget package versions
Also updated nuget packages. Once merged will close dependabot pull requests. |
Codecov ReportPatch coverage has no change and project coverage change:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## develop #340 +/- ##
===========================================
- Coverage 72.34% 72.25% -0.09%
===========================================
Files 82 82
Lines 3594 3594
===========================================
- Hits 2600 2597 -3
- Misses 994 997 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Henrique Graca <[email protected]>
Signed-off-by: Henrique Graca <[email protected]>
Change Moq to NSubstitute Update versions
Signed-off-by: Henrique Graca <[email protected]>
Signed-off-by: Henrique Graca <[email protected]>
cant have version if using central repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Henrique Graca <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
Issue number: #339
Summary
Utilities have a dependency on the AWS.Lambda.Powertools.Common project.
When the utility is compiled and packaged into a nuget package the AWS.Lambda.Powertools.Common is a dependency.
This behaviour is causing Diamond dependency issues in the project.
To address this we should copy the required files to each utility and make them completely isolated. This allows the client to not have to worry about dependencies between utilities and AWS.Lambda.Powertools.Common.
There is no need to delete the AWS.Lambda.Powertools.Common project but link the files in other projects, this will make it more readable in the solution explorer and makes maintenance easier because it's all in a single project.
Changes
AWS.Lambda.Powertools.Common
project in all utilitiesAWS.Lambda.Powertools.Common
files to all utilities csprojAspectInjector
Common
folder of the utility projectUpdated test project dependencies to latest versions
User experience
Checklist
Please leave checklist items unchecked if they do not apply to your change.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.