Building Caddy 1.0.0 beta 2 with Go 1.12.4 fails

Hi all,

I’m trying to build Caddy following the instructions in the README in a clean environment with Go 1.12.4. This is the simplest, without plugins build in a clean environment, with a newly created user (no GOPATH set, nothing previously downloaded).

Please see this gist https://gist.githubusercontent.com/dschulz/5c125b71153dd8262b6747a74a3fdad9/raw/d3417603be57c3a162d4983745b6fd18b8b13dd5/caddy_1.0.0beta2-buildlog.txt

What am I doing wrong? TIA

Hi Diego,

Thanks, this was helpful. I just learned about go mod tidy (I thought this was automatic but I guess not), so if you pin version 0c3d90ed21a4df1b5e75ff4d5f908fd3018f902c it should work now.

Thanks for the quick response, Matt.

Indeed, that solved the issue. Going to test building with some plugins later to see what works and what doesn’t.
I was just binge-reading go help mod myself but it didn’t occurred to me to look at the tidy command, just poking around without thinking too much.

Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.