Skip to content

docs(scripts): keep the composer portable and its comment repository-neutral - #174

Merged
robrigo merged 1 commit into
mainfrom
docs/composer-portability
Aug 17, 2026
Merged

docs(scripts): keep the composer portable and its comment repository-neutral#174
robrigo merged 1 commit into
mainfrom
docs/composer-portability

Conversation

@robrigo

@robrigo robrigo commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Why

The paired test used sed -i, whose in-place flag differs between GNU and BSD sed, so a contributor on macOS could not run it; it now rewrites through a temp file. The namespace comment in scripts/release-notes.sh named this repository's two lines, which reads as a tag convention in the contract repositories that carry the same script byte for byte; it now describes the two tag shapes generically. Same change rides in atomicassets/atomicassets-contract#33 and atomicassets/atomicmarket-contract#18.

Validation

bash scripts/release-notes.test.sh 12/12; shellcheck clean; the three copies are byte-identical.

…neutral

The paired test used sed -i, whose in-place flag differs between GNU and BSD
sed, so a contributor on macOS could not run it; it now rewrites through a temp
file. The namespace comment named this repository's two lines, which read as a
tag convention in the contract repositories that carry the same script; it now
describes the two shapes generically.

Signed-off-by: Rob Konsdorf <rob@facings.io>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the portability and reusability of the release-notes script suite across different environments and repositories by removing GNU/BSD sed incompatibilities in the paired test and making the tag-namespace comment repository-neutral.

Changes:

  • Replaced sed -i usage in scripts/release-notes.test.sh with a temp-file rewrite to work consistently on GNU and BSD sed.
  • Updated the tag-shape/namespace explanatory comment in scripts/release-notes.sh to describe tag conventions generically (portable across contract repositories).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scripts/release-notes.test.sh Avoids sed -i portability issues by rewriting CHANGELOG.md via a temp file + mv.
scripts/release-notes.sh Adjusts the tag-namespace comment to be repository-neutral while preserving the existing behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@robrigo
robrigo merged commit 33b6a4a into main Aug 17, 2026
3 checks 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