sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

feat(plugin): add configuration to run go package

Open frankli0324 opened this issue 1 month ago • 1 comments

This PR adds "go_package" field under "plugin.process" for configurations I'm trying to write plugin for a specific project, so I think it's reasonable to put plugin code alongside the project, and currently we need to install the plugin into $PATH before running sqlc generate, this simplifies the process. I suspect the "cmd" field checks for existence for some reason, so I didn't add a "args" field which may be more universal but less maintainable. I'm not sure about that.

frankli0324 avatar Oct 30 '25 08:10 frankli0324

I've being using this for a while and I didn't run into problems. rebased and squashed. any thoughts on this? @kyleconroy

frankli0324 avatar Dec 03 '25 13:12 frankli0324