Thank you for the detailed tutorial on how to write a source plugin. Is this guide up to date with the new SDKv4?
I’m just a beginner in Go trying to create my own source plugin, but it’s difficult to start since most of the information is suitable for SDKv3. For example, even when scaffolding project creation automatically uses SDKv4, it took me a while to understand that the SDK version was different.
Is it possible to add a new tutorial for Go if possible?
Hi It might not be up to the latest, but concepts are pretty similar to what we have. The best way, after reading the tutorials, is to check out a few of our open-source plugins that are using SDK V4 and are used in production.
As far as I can tell, there’s nothing out-of-date in the guide relating to SDK v3 / v4, but let us know if you find anything and I’d be happy to update it!
The only part that’s a bit out-of-date now is about publishing: it explains how to publish to GitHub (which still works and is fine, but doesn’t support private repos and/or gives you less exposure) but is missing instructions on how to publish to CloudQuery Hub. You can find those instructions here though: Publishing a Plugin to the Hub. I also raised an issue to update the Go source plugin docs there: Issue #15461.