Skip to content

Conversation

@alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented May 9, 2023

UpdateBuffer only supports UTF-8 encoded files, which causes schematics to emit corrupted binary like files such as images.

This commit also introduce an errors when the UpdateRecorder is used for non UTF-8 files.

Closes #25174

@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release action: review The PR is still awaiting reviews from at least one requested reviewer labels May 9, 2023
@alan-agius4 alan-agius4 requested a review from clydin May 9, 2023 10:35
@alan-agius4 alan-agius4 force-pushed the binary-files branch 3 times, most recently from 9a7de91 to 667e7aa Compare May 9, 2023 17:49
@alan-agius4 alan-agius4 changed the title fix(@angular-devkit/schematics): correct handle binary files fix(@angular-devkit/schematics): do not generate an UpdateBuffer for created and overridden files May 9, 2023
…created and overridden files

`UpdateBuffer` only supports UTF-8 encoded files, which causes schematics to emit corrupted binary like files such as images.

This commit also introduce an errors when the `UpdateRecorder` is used for non UTF-8 files.

Closes angular#25174
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 10, 2023
@angular-robot angular-robot bot merged commit 22c1cb6 into angular:main May 10, 2023
@alan-agius4 alan-agius4 deleted the binary-files branch May 10, 2023 11:21
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PWA icons are broken

2 participants