I am trying to compile caddy using two third party plugins: ratelimit and the toml adapter. I am using the following command:
xcaddy build --with github.com/awoodbeck/caddy-toml-adapter --with github.com/RussellLuo/caddy-ext/ratelimit
However, this hangs midway through the process and never completes, and if I switch the order of the plugins like so:
xcaddy build --with github.com/RussellLuo/caddy-ext/ratelimit --with github.com/awoodbeck/caddy-toml-adapter
it fails with the following error:
panic: internal error: can't find reason for requirement on github.com/hashicorp/golang-lru@v0.5.1
goroutine 1 [running]:
cmd/go/internal/modget.(*resolver).updateBuildList.func1({{0xc00029f600, 0x1f}, {0xc0000aeb86, 0x6}})
/usr/local/go/src/cmd/go/internal/modget/get.go:1760 +0xd4
cmd/go/internal/modget.(*resolver).updateBuildList(0xc00057c000, {0xb447f8, 0xc0000ae000}, {0x0, 0x0, 0x0})
/usr/local/go/src/cmd/go/internal/modget/get.go:1765 +0x54c
cmd/go/internal/modget.(*resolver).resolveQueries(0xc00057c000, {0xb447f8, 0xc0000ae000}, {0xc0000a9750, 0x2, 0xc0000b5d70?})
/usr/local/go/src/cmd/go/internal/modget/get.go:1243 +0x1b1
cmd/go/internal/modget.runGet({0xb447f8, 0xc0000ae000}, 0xc0000d6510?, {0xc0000c2160, 0x2, 0x2})
/usr/local/go/src/cmd/go/internal/modget/get.go:314 +0x408
main.invoke(0xe5b320, {0xc0000c2130, 0x5, 0x5})
/usr/local/go/src/cmd/go/main.go:225 +0x3d9
main.main()
/usr/local/go/src/cmd/go/main.go:179 +0x7ce
2024/03/03 22:28:36 [FATAL] exit status 2
Can anyone point out what I’m doing wrong or what might be the underlying issue here?