caddy-dns / cloudflare

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

Caddy Github Repo Link #52

Closed gwlocal closed 1 year ago

gwlocal commented 1 year ago

It seems as though all files are referencing github.com/caddyserver/caddy/v2 but the repo is now just github.com/caddyserver/caddy

I can't build due to this error:

 > [caddy builder 2/2] RUN xcaddy build     --with github.com/caddy-dns/cloudflare:
0.200 2023/07/10 00:24:28 [INFO] Temporary folder: /tmp/buildenv_2023-07-10-0024.1790002365
0.200 2023/07/10 00:24:28 [INFO] Writing main module: /tmp/buildenv_2023-07-10-0024.1790002365/main.go
0.200 package main
0.200
0.200 import (
0.200   caddycmd "github.com/caddyserver/caddy/v2/cmd"
0.200
0.200   // plug in Caddy modules here
0.200   _ "github.com/caddyserver/caddy/v2/modules/standard"
0.200   _ "github.com/caddy-dns/cloudflare"
0.200 )
0.200
0.200 func main() {
0.200   caddycmd.Main()
0.200 }
0.200 2023/07/10 00:24:28 [INFO] Initializing Go module
0.200 2023/07/10 00:24:28 [INFO] exec (timeout=-2562047h47m16.854775808s): /usr/local/go/bin/go mod init caddy
0.203 go: creating new go.mod: module caddy
0.204 go: to add module requirements and sums:
0.204   go mod tidy
0.205 2023/07/10 00:24:28 [INFO] Pinning versions
0.205 2023/07/10 00:24:28 [INFO] exec (timeout=-2562047h47m16.854775808s): /usr/local/go/bin/go get -d -v github.com/caddyserver/caddy/v2@v2.6.4
10.22 go: github.com/caddyserver/caddy/v2@v2.6.4: Get "https://proxy.golang.org/github.com/caddyserver/caddy/v2/@v/v2.6.4.info": dial tcp: lookup proxy.golang.org on 10.10.10.1:53: read udp 172.17.0.2:46834->10.10.10.1:53: i/o timeout
10.22 2023/07/10 00:24:38 [FATAL] exit status 1
------
failed to solve: process "/bin/sh -c xcaddy build     --with github.com/caddy-dns/cloudflare" did not complete successfully: exit code: 1
mholt commented 1 year ago

Thanks for opening an issue!

Everything in this repo is correct.

It seems as though all files are referencing github.com/caddyserver/caddy/v2 but the repo is now just github.com/caddyserver/caddy

github.com/caddyserver/caddy/v2 is a module path, not a GitHub repo.

dial tcp: lookup proxy.golang.org on 10.10.10.1:53: read udp 172.17.0.2:46834->10.10.10.1:53: i/o timeout

This just means your local or configured DNS resolver is down. Check your network settings.

gwlocal commented 1 year ago

Thank you for the quick response! I should have read more closely.

I was trying to get the caddy container running before I setup the DNS server.