Skip to content
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

fix: Generated CDK projects referencing version of System.Text.Json #850

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

normj
Copy link
Member

@normj normj commented Aug 28, 2024

Issue #, if available:
aws/aws-toolkit-visual-studio#462

Description of changes:
The generated CDK projects have TreatWarningsAsErrors as true which makes deployments start failing immediately when a dependency has a listed vulnerability. In this case System.Text.Json has a listed failure which causes the generated CDK project fail to build preventing deployment.

This PR updates the version of System.Text.Json which was actually coming in as a transitive dependency from Microsoft.Extensions.Configuration.Json. It also removes the TreatWarningsAsErrors property from the generated projects because we have no control when a package might be listed as vulnerable and we don't one deployments to just start failing when that happens.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@normj normj requested a review from philasmar August 28, 2024 00:32
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.35%. Comparing base (b390e37) to head (e2ed984).
Report is 2 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #850   +/-   ##
=======================================
  Coverage   62.35%   62.35%           
=======================================
  Files         279      279           
  Lines       10900    10900           
  Branches     1513     1513           
=======================================
  Hits         6797     6797           
  Misses       3566     3566           
  Partials      537      537           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@philasmar philasmar requested a review from dscpinheiro August 28, 2024 01:29
@philasmar philasmar merged commit 9515251 into dev Aug 28, 2024
11 checks passed
@philasmar philasmar deleted the normj/fix-warnings branch August 28, 2024 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants