Skip to content

fix: rename module to github.com/zalando/postgres-operator/v2 - #3156

Open
l0wl3vel wants to merge 5 commits into
zalando:masterfrom
l0wl3vel:fix/v2-module
Open

fix: rename module to github.com/zalando/postgres-operator/v2#3156
l0wl3vel wants to merge 5 commits into
zalando:masterfrom
l0wl3vel:fix/v2-module

Conversation

@l0wl3vel

@l0wl3vel l0wl3vel commented Aug 3, 2026

Copy link
Copy Markdown

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:

  • Your go code is formatted. Your IDE should do it automatically for you.
  • You have updated generated code when introducing new fields to the acid.zalan.do api package.
  • New configuration options are reflected in CRD validation, helm charts and sample manifests.
  • New functionality is covered by unit and/or e2e tests.
  • You have checked existing open PRs for possible overlay and referenced them.

@l0wl3vel
l0wl3vel marked this pull request as ready for review 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>
@FxKu FxKu added the major Major feature changes or updates, e.g. feature rollout to a new country, new API calls. label Aug 11, 2026
@FxKu FxKu added this to the 2.0.2 milestone Aug 11, 2026
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
l0wl3vel requested a review from Jan-M as a code owner August 11, 2026 10:11
@FxKu FxKu modified the milestones: 2.0.2, wishlist Aug 12, 2026
@FxKu FxKu modified the milestones: wishlist, 2.1.0 Aug 12, 2026
@FxKu FxKu modified the milestones: 2.1.0, 2.0.2 Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major Major feature changes or updates, e.g. feature rollout to a new country, new API calls.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants