Skip to content

fix: Portable sync-codemod-versions for Linux CI - #40

Merged
alexbit-codemod merged 1 commit into
mainfrom
fix/sync-codemod-versions-portable-sed
Aug 11, 2026
Merged

fix: Portable sync-codemod-versions for Linux CI#40
alexbit-codemod merged 1 commit into
mainfrom
fix/sync-codemod-versions-portable-sed

Conversation

@alexbit-codemod

Copy link
Copy Markdown
Contributor

Summary

  • Release failed on #58 while running pnpm version-packages
  • Cause: scripts/sync-codemod-versions.sh used sed -i '' ..., which is BSD/macOS syntax; GNU sed on Linux CI treated the substitution as a filename (can't read s/^version: ...)
  • Fix: rewrite the codemod.yaml version line with Node so macOS and Linux behave the same

Test plan

  • Locally ran bash scripts/sync-codemod-versions.sh and confirmed codemod.yaml stays at 0.7.12
  • Merge this PR
  • Confirm Release creates the Version Packages PR for debarrel@0.7.13 from the pending changeset

Made with Cursor

Replace sed -i with a Node rewrite so version sync works on both BSD sed and GNU sed. The macOS-only sed -i '' form broke Release on Linux CI.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alexbit-codemod
alexbit-codemod merged commit b08f7d0 into main Aug 11, 2026
1 check passed
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.

2 participants