Skip to content

Commit 3c529cf

Browse files
authored
feat(scaffold): Update SDK, add auto deps updates (#7115)
#### Summary This PR updates the plugin SDK for the scaffold CLI and also ensures it's gets dependency updates automatically going forward. There's an existing test that runs the scaffold command and verifies the code builds, so that should ensure breaking changes are handled and not auto merged <!--
1 parent 6be0c65 commit 3c529cf

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/renovate.json5

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@
1111
},
1212
],
1313
ignorePaths: ["plugins/destination/csv/**"],
14+
gomod: {
15+
fileMatch: ["go\\.mod\\.tpl$"],
16+
},
1417
}

scaffold/cmd/templates/source/client/client.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func (c *Client) ID() string {
1818
return "ID"
1919
}
2020

21-
func New(ctx context.Context, logger zerolog.Logger, s specs.Source, _ ...source.Option) (schema.ClientMeta, error) {
21+
func New(ctx context.Context, logger zerolog.Logger, s specs.Source, opts source.Options) (schema.ClientMeta, error) {
2222
var pluginSpec Spec
2323
2424
if err := s.UnmarshalSpec(&pluginSpec); err != nil {

scaffold/cmd/templates/source/go.mod.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module github.com/{{.Org}}/cq-source-{{.Name}}
33
go 1.19
44

55
require (
6-
github.com/cloudquery/plugin-sdk v1.25.0
6+
github.com/cloudquery/plugin-sdk v1.28.0
77
github.com/rs/zerolog v1.28.0
88
)

0 commit comments

Comments
 (0)