Skip to content

build: fix make output formatting - #592

Merged
dcalhoun merged 2 commits into
trunkfrom
build/makefile-help-and-release-output
Aug 21, 2026
Merged

build: fix make output formatting#592
dcalhoun merged 2 commits into
trunkfrom
build/makefile-help-and-release-output

Conversation

@dcalhoun

Copy link
Copy Markdown
Member

What?

Two unrelated make output annoyances found while working on the release script.

Why?

make release VERSION_TYPE=patch printed 23 lines of usage text before doing anything, on every valid invocation.

make help hardcoded its column width at 25 characters, so build-resources-xcframework (27) overflowed and test-android-library-e2e (24) left a single space — both descriptions fell out of alignment.

How?

Moved the usage text into the VERSION_TYPE-is-empty branch. Invalid (non-empty) values still fall through to bin/release.sh, which validates them properly.

make help now measures the longest target name and pads to it, so a future longer target won't reintroduce the misalignment.

Testing Instructions

  1. make release → usage text, exit 1.
  2. make release VERSION_TYPE=patch DRY_RUN=true → no usage dump.
  3. make help → descriptions align in one column.

dcalhoun and others added 2 commits August 20, 2026 10:20
The target printed 23 lines of usage text before checking VERSION_TYPE, so a
valid invocation got the full help dump ahead of the release output. Move the
text inside the error branch, leaving only the process header on the success
path.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The column width was hardcoded at 25 characters, so
`build-resources-xcframework` (27) overflowed it and
`test-android-library-e2e` (24) left a single space, breaking the alignment
of both descriptions.

Measure the longest name and pad to it, so adding a longer target keeps the
column aligned rather than reintroducing this.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the [Type] Build Tooling Issues or PRs related to build tooling label Aug 20, 2026
@wpmobilebot

Copy link
Copy Markdown

XCFramework Build

This PR's XCFramework is available for testing. Add the following to your Package.swift:

.package(url: "https://github.com/wordpress-mobile/GutenbergKit", branch: "pr-build/592")

Built from 5bd8841

@dcalhoun
dcalhoun marked this pull request as ready for review August 20, 2026 14:35
@dcalhoun
dcalhoun requested a review from adalpari August 21, 2026 11:55

@adalpari adalpari left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@dcalhoun
dcalhoun merged commit 72eae7b into trunk Aug 21, 2026
24 checks passed
@dcalhoun
dcalhoun deleted the build/makefile-help-and-release-output branch August 21, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants