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

detect byte order mark in YAML and report error #11073

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

brettfo
Copy link
Contributor

@brettfo brettfo commented Dec 6, 2024

If a YAML file was saved with the encoding "UTF-8 with BOM" and parsed, only the first property will be reported, ignoring the rest of the file and ultimately resulting in no images found and nothing updatable.

This PR explicitly detects the byte order mark and reports DependencyFileNotParseable with a message so the user can correct it.

Bug was found during internal investigations.

@brettfo brettfo requested a review from a team as a code owner December 6, 2024 21:56
@github-actions github-actions bot added the L: docker Docker containers label Dec 6, 2024
@brettfo brettfo force-pushed the dev/brettfo/yaml-bom branch 2 times, most recently from d98e76e to 6a08c88 Compare December 6, 2024 22:11
@honeyankit honeyankit force-pushed the dev/brettfo/yaml-bom branch from 6a08c88 to d851414 Compare December 6, 2024 23:09
@honeyankit honeyankit merged commit ed1f9e9 into main Dec 6, 2024
56 checks passed
@honeyankit honeyankit deleted the dev/brettfo/yaml-bom branch December 6, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: docker Docker containers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants