Skip to content

Building plugin with other plugins #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AndreKR opened this issue Feb 11, 2025 · 2 comments
Open

Building plugin with other plugins #227

AndreKR opened this issue Feb 11, 2025 · 2 comments

Comments

@AndreKR
Copy link

AndreKR commented Feb 11, 2025

Sorry to create an issue because this is more of a usage question but it's really not obvious so one could say this is a request for improved documentation. :)

When I use xcaddy from the plugin directory to build Caddy with my plugin, how do I include other plugins at the same time? I tried xcaddy --with github.com/mholt/caddy-events-exec run but that just says Error: unknown flag: --with.

@francislavoie
Copy link
Member

I'm not sure that's possible right now, but it would make sense to include.

But what you can do instead is use xcaddy build and do module replacement with the = syntax, then run that binary. Two commands instead of one, but it's more flexible.

@mholt
Copy link
Member

mholt commented Feb 12, 2025

Yeah, I use build and then with to include both plugins: the current one (using =. To replace it with the local copy) and the other one.

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

No branches or pull requests

3 participants