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

feat(core): normalize line endings in asset hash calculation #16276

Merged
merged 7 commits into from
Aug 30, 2021

Conversation

jogold
Copy link
Contributor

@jogold jogold commented Aug 30, 2021

Replace CRLF with LF so asset hashes are identical across platforms.

The hash still includes the size but it is now the size after converting
line endings.

Addresses #14555 (closes it?)


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Replace CRLF with LF so asset hashes are identical across platforms.

The hash still includes the size but it is also normalized.
@gitpod-io
Copy link

gitpod-io bot commented Aug 30, 2021

@jogold
Copy link
Contributor Author

jogold commented Aug 30, 2021

@eladb can you take a look?

(+ this needs pr-linter/exempt-readme)

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: a6d9862
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@eladb eladb added the pr-linter/exempt-readme The PR linter will not require README changes label Aug 30, 2021
@mergify mergify bot merged commit 01bf6e2 into aws:master Aug 30, 2021
@mergify
Copy link
Contributor

mergify bot commented Aug 30, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@jogold jogold deleted the normalize-eol branch August 30, 2021 15:46
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Sep 6, 2021
Replace CRLF with LF so asset hashes are identical across platforms.

The hash still includes the size but it is now the size after converting
line endings.

Addresses aws#14555 (closes it?)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
david-doyle-as24 pushed a commit to david-doyle-as24/aws-cdk that referenced this pull request Sep 7, 2021
Replace CRLF with LF so asset hashes are identical across platforms.

The hash still includes the size but it is now the size after converting
line endings.

Addresses aws#14555 (closes it?)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-linter/exempt-readme The PR linter will not require README changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants