Skip to content

Add make pgxntool-version to print the embedded pgxntool version - #73

Open
jnasbyupgrade wants to merge 5 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:pgxntool-version
Open

Add make pgxntool-version to print the embedded pgxntool version#73
jnasbyupgrade wants to merge 5 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:pgxntool-version

Conversation

@jnasbyupgrade

Copy link
Copy Markdown
Contributor

Summary

  • Adds make pgxntool-version (and pgxntool/pgxntool-version.sh for use without make) to print the version of the embedded pgxntool copy, so a consuming project can tell what version it has without digging through git history (which git subtree --squash collapses anyway).
  • Reads the version from the first line of HISTORY.asc, the same line the release process stamps. Prints STABLE as-is if this copy was synced from an unreleased commit rather than a tagged release.
  • Checked open/closed issues first; found nothing tracking this.

Test plan

  • Companion PR in pgxntool-test adds unit tests for pgxntool-version.sh (stamped version, STABLE, missing file, empty file, default path) and an integration test that make pgxntool-version matches the embedded pgxntool/HISTORY.asc in a real foundation repo.
  • Full pgxntool-test suite passes (223/223).

🤖 Generated with Claude Code

There was no reliable way to tell which pgxntool version a project had
embedded via git subtree, short of digging through git history (which
git subtree --squash collapses anyway). pgxntool-version.sh reads the
version from the first line of HISTORY.asc -- the line the release
process stamps -- and make pgxntool-version wraps it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f938e1b9-8de6-42ce-a2d3-ec5c765f761c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Only STABLE or a plain X.Y.Z version (digits only, no pre-release
suffixes) is accepted; anything else likely means a corrupt or
hand-edited HISTORY.asc, and printing it as if it were a real answer
would be misleading.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jnasbyupgrade
jnasbyupgrade marked this pull request as ready for review July 27, 2026 23:10
jnasbyupgrade and others added 3 commits July 27, 2026 18:50
README.html is a generated rendering of README.asc with no execution
weight of its own; a doc-only PR that regenerates it shouldn't lose
the doc-only bypass and start requiring a paired test PR or label.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Gives it a plain, guessable invocation (bin/version, or ./version from
inside bin/) instead of a name that stutters with the directory it
already lives in.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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