Skip to content

fix: remove exact version pin for libpq-dev in Dockerfile (#12808)#13011

Open
OliverCostello1 wants to merge 1 commit into
dbt-labs:main_backupfrom
OliverCostello1:fix/unpin-libpq-dev-12808
Open

fix: remove exact version pin for libpq-dev in Dockerfile (#12808)#13011
OliverCostello1 wants to merge 1 commit into
dbt-labs:main_backupfrom
OliverCostello1:fix/unpin-libpq-dev-12808

Conversation

@OliverCostello1

Copy link
Copy Markdown

Summary

Closes #12808

Removes the exact version pin on libpq-dev in docker/Dockerfile. This pin has required 5+ manual bumps in ~18 months because Debian removes old package versions from apt repos whenever it publishes a security update, breaking Docker builds until a maintainer notices and bumps the pin.

What changed

docker/Dockerfile: libpq-dev=13.23-0+deb11u3libpq-dev (unpinned), with an explanatory comment.

Why this is safe

The apt-mark hold libpq-dev line that immediately follows already prevents apt-get dist-upgrade from changing the installed version during the build. The exact-version pin was providing no additional protection — it was only causing breakage when Debian published patch updates.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development, and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required or relevant for this PR
  • This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.)

@OliverCostello1 OliverCostello1 requested a review from a team as a code owner May 22, 2026 11:49
@cla-bot

cla-bot Bot commented May 22, 2026

Copy link
Copy Markdown

Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA.

In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR.

CLA has not been signed by users: @OliverCostello1

@github-actions github-actions Bot added the community This PR is from a community member label May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community This PR is from a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider unpinning or relaxing libpq-dev version in Dockerfile

1 participant