So I was able to have caddy.upload build successfully back in May. Since then, I don’t know what’s changed.
Here’s some context lines around caddymain/run.go:
32 "github.com/mholt/caddy"
33 // plug in the HTTP server type
34 _ "github.com/mholt/caddy/caddyhttp"
35
36 "github.com/mholt/caddy/caddytls"
37 // This is where other plugins get plugged in (imported)
38 _ "blitznote.com/src/caddy.upload"
39 )
Then I run go run build.go at ~/bin/gopath/src/github.com/mholt/caddy/caddy
% echo $GOPATH
/home/jungle/bin/gopath
Am I doing something wrong?
I’ve deleted caddy related files and subdirectories out from my gopath, along with the caddy.upload to have a fresh start. Then added the _ import line from above back in, but I have the same results:
% sudo caddy -conf /usr/local/www/Caddyfile
Activating privacy features... done.
2017/11/12 14:15:02 no action found for directive 'upload' with server type 'http' (missing a plugin?)
@jungle-boogie assuming this is a new HTTP plugin and new Caddyfile directive. Then you also need to add your new directive into caddy/caddyhttp/httpserver/plugin.go by adding it to var directives You could drop it in at the bottom of the list.