caddy-dns / cloudflare

Caddy module: dns.providers.cloudflare
Apache License 2.0
436 stars 59 forks source link

Building with caddy from OMV terminal just gets exit status 2 #64

Closed Squidsu closed 11 months ago

Squidsu commented 1 year ago

I'm trying to download the cloudflare module but this is all I get, any ideas? (I have master version as suggested by others with this issue but as you can see it makes no difference)

root@Home:/Volume1# xcaddy build master --with github.com/caddy-dns/cloudflare
2023/08/21 23:15:57 [INFO] Temporary folder: /tmp/buildenv_2023-08-21-2315.42338895
2023/08/21 23:15:57 [INFO] Writing main module: /tmp/buildenv_2023-08-21-2315.42338895/main.go
package main

import (
        caddycmd "github.com/caddyserver/caddy/v2/cmd"

        // plug in Caddy modules here
        _ "github.com/caddyserver/caddy/v2/modules/standard"
        _ "github.com/caddy-dns/cloudflare"
)

func main() {
        caddycmd.Main()
}
2023/08/21 23:15:57 [INFO] Initializing Go module
2023/08/21 23:15:57 [INFO] exec (timeout=0s): /usr/bin/go mod init caddy
go: creating new go.mod: module caddy
2023/08/21 23:15:57 [INFO] Pinning versions
2023/08/21 23:15:57 [INFO] exec (timeout=0s): /usr/bin/go get -d -v github.com/caddyserver/caddy/v2@master
go: github.com/caddyserver/caddy/v2 master => v2.7.5-0.20230820145103-38a7b6b3d0e1
2023/08/21 23:16:03 [INFO] exec (timeout=0s): /usr/bin/go get -d -v github.com/caddy-dns/cloudflare github.com/caddyserver/caddy/v2@master
go: github.com/caddy-dns/cloudflare upgrade => v0.0.0-20230807034102-74f004e1c1ab
2023/08/21 23:16:08 [INFO] exec (timeout=0s): /usr/bin/go get -d -v
2023/08/21 23:16:13 [INFO] Build environment ready
2023/08/21 23:16:13 [INFO] Building Caddy
2023/08/21 23:16:13 [INFO] exec (timeout=0s): /usr/bin/go mod tidy -e
flag provided but not defined: -e
usage: go mod tidy [-v]
Run 'go help mod tidy' for details.
2023/08/21 23:16:13 [INFO] Cleaning up temporary folder: /tmp/buildenv_2023-08-21-2315.42338895
2023/08/21 23:16:13 [FATAL] exit status 2
mholt commented 1 year ago

Make sure to use the latest version of Go (1.21)