Skip to content

fix(aztec): use perl -i for portable in-place edit in add_crate.sh#23335

Open
nchamo wants to merge 1 commit into
merge-train/fairiesfrom
nc/fix-add-crate-bsd-sed
Open

fix(aztec): use perl -i for portable in-place edit in add_crate.sh#23335
nchamo wants to merge 1 commit into
merge-train/fairiesfrom
nc/fix-add-crate-bsd-sed

Conversation

@nchamo
Copy link
Copy Markdown
Contributor

@nchamo nchamo commented May 16, 2026

Problem

aztec init fails on macOS with sed: -e: No such file or directory. The sed -i invocations in add_crate.sh rely on GNU sed's optional argument to -i; BSD sed (default on macOS) requires an explicit extension argument and otherwise treats the next token as the backup extension.

Surfaced by the new macOS leg of the CLI acceptance test matrix being explored in branch nchamo/f-566-explore-macos-ci-coverage-for-the-full-dev-onboarding-path.

Fix

Replace the three sed -i calls with perl -i -pe, which behaves identically across implementations. Regex syntax is unchanged except for the capture group switching from \(...\) to (...).

@nchamo nchamo self-assigned this May 16, 2026
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