Skip to content

Write the changepack log without a BOM - #201

Merged
owjs3901 merged 1 commit into
mainfrom
fix-changepack-bom
Sep 14, 2026
Merged

owjs3901 merged 1 commit into
mainfrom
fix-changepack-bom

Conversation

@owjs3901

Copy link
Copy Markdown
Contributor

.changepacks/changepack_log_F7sKFk0VHuuAuj0_bSvZ7.json 가 UTF-8 BOM 으로 시작해서 changepacks 가 읽지 못한다.

##[error]changepacks check failed: Error: Failed to parse changepack log
.changepacks/changepack_log_F7sKFk0VHuuAuj0_bSvZ7.json: expected value at line 1 column 1

PowerShell 의 Set-Content -Encoding UTF8 이 BOM 을 붙인 것이고, 다른 changepack 로그 네 개에는 BOM 이 없다.

모든 PR 이 이것 때문에 막힌다. publish.yml 의 changepacks job 은 pull_request_target 으로 돌아 워크플로와 체크아웃을 base(main)에서 가져오므로, PR 안에서 파일을 고쳐도 job 은 여전히 main 의 BOM 파일을 읽는다. main 을 고쳐야 풀린다.

BOM 을 없애고 다른 로그들이 쓰는 한 줄 형식으로 맞췄다. 내용(changes/note/date)은 그대로다.

PowerShell's Set-Content wrote a UTF-8 byte order mark, and changepacks
rejects it: 'Failed to parse changepack log ...: expected value at line 1
column 1'. Because the workflow runs on pull_request_target it reads this
file from main, so every pull request fails its changepacks check until
main itself is repaired. Match the single-line shape the other logs use.
@codecov

codecov Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@owjs3901
owjs3901 merged commit 53196b1 into main Sep 14, 2026
39 of 40 checks passed
@owjs3901
owjs3901 deleted the fix-changepack-bom branch September 14, 2026 10:52
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.

1 participant