fix: rename module to github.com/zalando/postgres-operator/v2 - #3156
Open
l0wl3vel wants to merge 5 commits into
Open
fix: rename module to github.com/zalando/postgres-operator/v2#3156l0wl3vel wants to merge 5 commits into
l0wl3vel wants to merge 5 commits into
Conversation
l0wl3vel
marked this pull request as ready for review
August 3, 2026 09:53
l0wl3vel
requested review from
FxKu,
idanovinda,
jopadi and
mikkeloscar
as code owners
August 3, 2026 09:53
l0wl3vel
added a commit
to fi-ts/postgreslet
that referenced
this pull request
Aug 3, 2026
Upstream did not update the module version when releasing v2. Pinning the commit from [the upstream release](https://github.com/zalando/postgres-operator/releases/tag/v2.0.1) instead. Upstream work: [issue](zalando/postgres-operator#3155) [PR](zalando/postgres-operator#3156) Signed-off-by: Benjamin Ritter <benjamin.ritter@x-cellent.com>
Upgrade performed using https://github.com/icholy/gomajor ``` gomajor path -version v2 ``` Signed-off-by: Benjamin Ritter <benjamin.ritter@x-cellent.com>
Signed-off-by: Benjamin Ritter <benjamin.ritter@x-cellent.com>
Signed-off-by: Benjamin Ritter <benjamin.ritter@x-cellent.com>
l0wl3vel
force-pushed
the
fix/v2-module
branch
from
August 11, 2026 10:11
a3b60eb to
83680cf
Compare
FxKu
approved these changes
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem description
~v2 versions of the package are not showing up on https://pkg.go.dev/github.com/zalando/postgres-operator and by go get refuses to pull the package.
Go requires major versions to also contain the module major version in the path to prevent accidental automatic updating by users: https://go.dev/doc/modules/version-numbers#major-version
This PR fixes this mismatch between version and module name by renaming the module to github.com/zalando/postgres-operator/v2
Linked issues
#3155
Checklist
Thanks for submitting a pull request to the Postgres Operator project.
Please, ensure your contribution matches the following items:
acid.zalan.doapi package.