Hello!
I’m a Golang beginner and I’m trying to develop a new plugin for Caddy.
I want to build Caddy with my plugin which is only available locally. I tried to include it in the import section of run.go
according to the documentation but that doesn’t seem to work:
build caddy: cannot load antibot: cannot find module providing package antibot
While searching before posting here I found about Go modules and Golang 1.12, so I tried to include my plugin in the go.mod
by following the To build Caddy with plugins (and with version information)
section in the README of Caddy but that doesn’t work as well:
/home/unixfox/Documents/caddydev/go.mod:7: usage: require module/path v1.2.3
What’s the correct way to include a local plugin when building Caddy for development purposes?
My golang version is go version go1.12.4 linux/amd64
.