Repository navigation
feat: Deprecate legacy protocol packages - #720
Merged
Merged
Conversation
Member
Author
|
/agent-reviewer |
disq
approved these changes
Nov 2, 2026
kodiakhq Bot
pushed a commit
to cloudquery/plugin-sdk
that referenced
this pull request
Nov 2, 2026
#### Summary Plugins built on this SDK stop serving destination protocol v0 and v1, so their destinations no longer accept syncs from sources built on plugin-sdk v3 or older. Discovery now advertises only protocol v3 for all plugins; `WithDestinationV0V1Server` is a deprecated no-op and can be removed. #### Release note Users of CLI v3.x to v6.49.2 who sync a source built on plugin-sdk v3 or older (plugin protocol v1 or v2) into a destination built on this SDK get errors such as: ``` destination plugin postgresql does not support CloudQuery SDK version 1. Please upgrade to a newer version of the postgresql destination plugin failed to sync v1 source <source>: rpc error: code = Unimplemented desc = unknown service proto.Destination ``` The first error is misleading, because a newer destination does not help. Upgrade the source to a version built on plugin-sdk v4 or later, or pin the destination to a version released before this change. CLI v6.50.0 and later already reject these sources. #### Merge order Hold the releases until the maintainers ship this set together: 1. CLI v6.50.0 (cloudquery/cloudquery#23623) releases first. 2. This PR merges and plugin-sdk releases. It merges cleanly with #2645 in either order. 3. cloudquery/cloudquery#23705 merges only after Renovate bumps every destination it touches to this plugin-sdk release. The bump alone stops serving protocols v0 and v1. Merged earlier, a destination released before its bump advertises protocols v0 to v2 but does not serve them. 4. cloudquery/plugin-pb-go#720 releases after this plugin-sdk release. `.golangci.yml` here already excludes the SA1019 finding it adds for `pb/discovery/v0`, which the SDK still serves for old CLIs. #### Manual QA - [x] `go build ./...` and `go test ./serve/...` pass. `golangci-lint run` reports 39 issues, all also on `main` (47 there). - [x] With a `replace` to the plugin-pb-go branch from cloudquery/plugin-pb-go#720, `golangci-lint run` reports no SA1019 finding. - [x] Merged with the #2645 branch: `go build ./...` and `go test ./...` pass. - [x] 36 CloudQuery plugin modules build and pass `go vet` against the combined branch through a `replace` directive. - [x] A postgresql destination built on the combined branch: discovery v1 returns `[3]`, and calls to the `proto.Destination` and `cloudquery.destination.v1.Destination` services return `Unimplemented`. - [x] CLI v3.29.2 syncs a plugin-sdk v4 source into that destination. A protocol v2 source fails with the first error above. ---
kodiakhq Bot
pushed a commit
to cloudquery/cloudquery
that referenced
this pull request
Nov 4, 2026
…dk v3 and older) (#23705) #### Summary Updates plugin-sdk to v4.100.0 in 20 destinations and removes `serve.WithDestinationV0V1Server()` from them, so they stop serving destination protocol v0 and v1. #### Release note Users of CLI v3.x to v6.49.2 who sync a source built on plugin-sdk v3 or older (plugin protocol v1 or v2) into these destinations get errors such as: ``` destination plugin postgresql does not support CloudQuery SDK version 1. Please upgrade to a newer version of the postgresql destination plugin failed to sync v1 source <source>: rpc error: code = Unimplemented desc = unknown service proto.Destination ``` The first error is misleading, because a newer destination does not help. Upgrade the source to a version built on plugin-sdk v4 or later, or pin the destination to a version released before this change. CLI v6.50.0 and later already reject these sources. #### Merge order 1. CLI v6.50.0 and plugin-sdk v4.100.0 are released. 2. This PR merges before Renovate's plugin-sdk v4.100.0 update in this repo. v4.100.0 marks `WithDestinationV0V1Server` deprecated, so that update fails lint in these destinations until this PR removes the call. 3. The destinations release after this PR. It updates plugin-sdk and removes the option in one change, so no release advertises protocols v0 to v2 without serving them. See also cloudquery/plugin-pb-go#720. #### Manual QA - [x] All 20 destinations build and pass `go vet` and `golangci-lint run` on plugin-sdk v4.100.0. - [x] All 20 destinations build and pass `go vet` against the plugin-sdk branch from cloudquery/plugin-sdk#2659 through a `replace` directive. - [x] postgresql built on that branch: discovery v1 returns `[3]`, and calls to the `proto.Destination` and `cloudquery.destination.v1.Destination` services return `Unimplemented`. - [x] CLI v3.29.2 syncs a plugin-sdk v4 source into that postgresql build. A protocol v2 source fails with the first error above.
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.
Summary
Marks the generated packages for the legacy plugin protocols, plus
specsandmetrics, as deprecated, and stops regenerating them.pb/source/v0,pb/source/v1,pb/source/v2pb/plugin/v3pb/destination/v0,pb/destination/v1pb/plugin/v3pb/base/v0pb/plugin/v3pb/discovery/v0pb/discovery/v1pb/analytics/v0specsmetricsThe packages stay in the module, so no import breaks.
managedpluginstill uses discovery v0 and the v0 base and source clients to support old plugins, so.golangci.ymlexcludes those SA1019 findings.Merge order
Hold the release until the maintainers ship this set together. Release this only after both of these:
staticcheck.See also cloudquery/cloudquery#23705.
Manual QA
go build ./...andgolangci-lint runpass.replaceto this branch, reports no SA1019 finding ingolangci-lint run.git greponmainfinds no import of these packages in CloudQuery plugin code.Use the following steps to ensure your PR is ready to be reviewed
go fmt ./...to format your code 🖊golangci-lint run🚨 (install golangci-lint here)