danb35 / freenas-iocage-nextcloud

Script to create an iocage jail on FreeNAS for the latest Nextcloud 28 release, including Caddy, MariaDB or PostgreSQL, and Let's Encrypt
GNU General Public License v3.0
250 stars 71 forks source link

unable to build quic-go #187

Closed toniglandy1 closed 2 years ago

toniglandy1 commented 2 years ago

as of 11th of April 2022, running the script as-is on truenas 12.0-U8 brings a build fail on caddy without plugins. This is due to the script trying to build quick-go 0.23.0 which doesn't build on later versions of go. You need to change the build command to use the latest version :

iocage exec "${JAIL_NAME}" xcaddy build --output /usr/local/bin/caddy --with github.com/lucas-clemente/quic-go@latest

344Clinton commented 2 years ago

I'm having the same issue. Concur that from if ! iocage exec "${JAIL_NAME}" xcaddy build --output /usr/local/bin/caddy to if ! iocage exec "${JAIL_NAME}" xcaddy build --output /usr/local/bin/caddy --with github.com/lucas-clemente/quic-go@latest

seems to work so far. need to verify

danb35 commented 2 years ago

This should be resolved now with the release of Caddy 2.5.0.