Skip to content

[POC] building Go plugins#258

Draft
henderkes wants to merge 4 commits intocaddyserver:masterfrom
henderkes:master
Draft

[POC] building Go plugins#258
henderkes wants to merge 4 commits intocaddyserver:masterfrom
henderkes:master

Conversation

@henderkes
Copy link

@henderkes henderkes commented Feb 17, 2026

Do not merge this slop, for obvious reasons.

Proof of concept to build shared plugins for caddyserver/caddy#7488

This can be greatly simplified, I just wanted to get something working at first. If the proposed PR gets accepted, I will write this by hand.

General logic should be:

  • parse caddy binary for dependency versions
  • compile a shared plugin with all shared plugins we want to compile
  • parse caddy binary and combined plugin for specific versions, merge them together
  • next, when building shared plugin:
  • create module importing single plugin, with an empty main method
  • go mod tidy
  • pin dependencies, direct or indirect that match some of the combined plugin
  • compile, rinse and repeat

@henderkes henderkes marked this pull request as draft February 17, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant