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

parts =
  gowork
  caddy

[gowork.goinstall]
command = bash -c ". ${gowork:env.sh} && cd ${go_github.com_caddyserver_caddy:location} && GO111MODULE=on go install -v $(echo -n '${gowork:install}' |tr '\n' ' ')"

[gowork]
golang  = ${golang1.12:location}
install =
  github.com/caddyserver/caddy/...

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