yandex-cloud / cq-source-yc

Yandex Cloud CloudQuery source plugin
https://hub.cloudquery.io/plugins/source/yandex-cloud/yc
Apache License 2.0
18 stars 12 forks source link

feat: Migrate plugin to `github.com/cloudquery/plugin-sdk/v2` #37

Closed candiduslynx closed 1 year ago

candiduslynx commented 1 year ago

Hello! We've recently updated plugin-sdk to v2 (includes migration to Apache Arrow for the destination side).

Currently, no major updates to the source side were made.

Here's an easy step-by-step workflow that will allow you to migrate the code easily & efficiently:

  1. Install gomajor
  2. gomajor get github.com/cloudquery/plugin-sdk/v2
  3. add replace for github.com/apache/arrow/go/v12 (see github.com/cloudquery/plugin-sdk/v2 go.mod)
  4. go mod tidy && go get -t -d ./... && go mod tidy && go mod vendor
  5. Update the templates/code generation to use the proper SDK version, too
  6. make gen lint test (if the appropriate targets exist)
candiduslynx commented 1 year ago

Closing per SDK v4 already released