Skip to content

Rename PGTLE_VERSION to PGXNTOOL_PGTLE_VERSION - #85

Merged
jnasbyupgrade merged 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:fix-78-pgtle-prefix
Jul 31, 2026
Merged

Rename PGTLE_VERSION to PGXNTOOL_PGTLE_VERSION#85
jnasbyupgrade merged 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:fix-78-pgtle-prefix

Conversation

@jnasbyupgrade

@jnasbyupgrade jnasbyupgrade commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • base.mk's pgtle target read a make variable named PGTLE_VERSION to limit generation to one version range. Make auto-imports environment variables of the same name into unset make variables, and PGTLE_VERSION is also a natural name for a CI job's "which pg_tle to test against" env var — when one was set, make pgtle/make run-pgtle silently misbehaved instead of erroring.
  • Renamed to PGXNTOOL_PGTLE_VERSION to avoid the collision.
  • Updated README.asc/README.html, CLAUDE.md, and added a STABLE HISTORY.asc entry.

Fixes #78.

Companion pgxntool-test PR: Postgres-Extensions/pgxntool-test#64

make auto-imports environment variables of the same name as an
unset make variable, and `pgtle`'s version-limiting variable was
named PGTLE_VERSION -- also a natural name for a CI job's "which
pg_tle to test against" env var. When such an env var was set,
`make pgtle`/`make run-pgtle` silently generated/ran the wrong
version-range directory instead of erroring.

Renamed to PGXNTOOL_PGTLE_VERSION to avoid the collision. Updated
README.asc/README.html, CLAUDE.md, and HISTORY.asc accordingly.

Related changes in pgxntool-test:
- test/sequential/04-pgtle.bats updated to use PGXNTOOL_PGTLE_VERSION
- Added a regression test confirming a PGTLE_VERSION env var no longer
  affects `make pgtle`

Fixes Postgres-Extensions#78.

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

coderabbitai Bot commented Jul 31, 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: 4ddcaa96-2ad7-4a33-b7ec-85cdbdf3f8c1

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

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.

@jnasbyupgrade
jnasbyupgrade marked this pull request as ready for review July 31, 2026 20:59
jnasbyupgrade added a commit to Postgres-Extensions/pgxntool-test that referenced this pull request Jul 31, 2026
- Companion test for Postgres-Extensions/pgxntool#85, which renames
`PGTLE_VERSION` to `PGXNTOOL_PGTLE_VERSION` (issue pgxntool#78) to avoid
a silent collision with same-named CI environment variables.
@jnasbyupgrade
jnasbyupgrade merged commit 3ceb930 into Postgres-Extensions:master Jul 31, 2026
5 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.

pgtle.sh: Makefile's PGTLE_VERSION variable silently collides with a consumer's same-named env var

1 participant