Skip to content

feat(sgpostgres): allow configuring postgres version#823

Merged
fredrikaverpil merged 1 commit into
masterfrom
feat/sgpostgres-version-option
Jun 3, 2026
Merged

feat(sgpostgres): allow configuring postgres version#823
fredrikaverpil merged 1 commit into
masterfrom
feat/sgpostgres-version-option

Conversation

@fredrikaverpil

@fredrikaverpil fredrikaverpil commented Jun 3, 2026

Copy link
Copy Markdown
Member

Why?

  • RunLocal hard-coded the postgres image version (14), so callers could not run tests against other versions.

What?

  • Add a WithVersion functional option to RunLocal.
  • Default to 14 when no option is supplied.
  • Resolve the image tag at call time instead of via a package-level constant.

Add a WithVersion functional option to RunLocal so callers can choose
the postgres image version, defaulting to "14" when unspecified. The
image tag is now resolved at call time instead of via a package-level
constant.
@fredrikaverpil fredrikaverpil self-assigned this Jun 3, 2026
@fredrikaverpil fredrikaverpil marked this pull request as ready for review June 3, 2026 13:04
@fredrikaverpil fredrikaverpil requested review from a team as code owners June 3, 2026 13:04

@kristofferwanglund kristofferwanglund 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

@fredrikaverpil fredrikaverpil merged commit 2fa7021 into master Jun 3, 2026
3 checks passed
@fredrikaverpil fredrikaverpil deleted the feat/sgpostgres-version-option branch June 3, 2026 13:07
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