[buildout]
extends =
  ../../component/golang/buildout.cfg

parts =
  gowork
  caddy

[caddy-get]
<= go-git-package
go.importpath = github.com/caddyserver/caddy
repository    = https://lab.nexedi.com/nexedi/caddy.git
revision      = nxd-v1.0.3-1-03fba31bf

[gowork]
golang  = ${golang1.17:location}
install =
  ${caddy-get:location}:./...

[caddy]
recipe = plone.recipe.command
command = exit 0
update-command = ${:command}
output = ${gowork:bin}/caddy
location = ${:output}
