Skip to content

The latest version can no longer build #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
undefined-moe opened this issue Apr 24, 2025 · 7 comments
Open

The latest version can no longer build #14

undefined-moe opened this issue Apr 24, 2025 · 7 comments

Comments

@undefined-moe
Copy link

2025/04/24 17:56:18 [INFO] absolute output file path: ***/caddy
2025/04/24 17:56:18 [INFO] Temporary folder: /tmp/buildenv_2025-04-24-1756.411936080
2025/04/24 17:56:18 [INFO] Writing main module: /tmp/buildenv_2025-04-24-1756.411936080/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/tencentcloud"
)

func main() {
        caddycmd.Main()
}
2025/04/24 17:56:18 [INFO] Initializing Go module
2025/04/24 17:56:18 [INFO] exec (timeout=0s): go mod init caddy 
go: creating new go.mod: module caddy
go: to add module requirements and sums:
        go mod tidy
2025/04/24 17:56:18 [INFO] Pinning versions
2025/04/24 17:56:18 [INFO] exec (timeout=0s): go get -v github.com/caddyserver/caddy/v2 
go: added github.com/beorn7/perks v1.0.1
go: added github.com/caddyserver/caddy/v2 v2.10.0
go: added github.com/caddyserver/certmagic v0.23.0
go: added github.com/caddyserver/zerossl v0.1.3
go: added github.com/cespare/xxhash/v2 v2.3.0
go: added github.com/francoispqt/gojay v1.2.13
go: added github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
go: added github.com/google/pprof v0.0.0-20231212022811-ec68065c825e
go: added github.com/google/uuid v1.6.0
go: added github.com/klauspost/cpuid/v2 v2.2.10
go: added github.com/libdns/libdns v1.0.0-beta.1
go: added github.com/mholt/acmez/v3 v3.1.2
go: added github.com/miekg/dns v1.1.63
go: added github.com/onsi/ginkgo/v2 v2.13.2
go: added github.com/prometheus/client_golang v1.19.1
go: added github.com/prometheus/client_model v0.5.0
go: added github.com/prometheus/common v0.48.0
go: added github.com/prometheus/procfs v0.12.0
go: added github.com/quic-go/qpack v0.5.1
go: added github.com/quic-go/quic-go v0.50.1
go: added github.com/zeebo/blake3 v0.2.4
go: added go.uber.org/mock v0.5.0
go: added go.uber.org/multierr v1.11.0
go: added go.uber.org/zap v1.27.0
go: added go.uber.org/zap/exp v0.3.0
go: added golang.org/x/crypto v0.36.0
go: added golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
go: added golang.org/x/mod v0.24.0
go: added golang.org/x/net v0.38.0
go: added golang.org/x/sync v0.12.0
go: added golang.org/x/sys v0.31.0
go: added golang.org/x/term v0.30.0
go: added golang.org/x/text v0.23.0
go: added golang.org/x/time v0.11.0
go: added golang.org/x/tools v0.31.0
go: added google.golang.org/protobuf v1.35.1
2025/04/24 17:56:25 [INFO] exec (timeout=0s): go get -v github.com/caddy-dns/tencentcloud github.com/caddyserver/caddy/v2 
go: added github.com/caddy-dns/tencentcloud v0.2.3
go: added github.com/libdns/tencentcloud v1.2.1
go: added github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1051
2025/04/24 17:56:29 [INFO] exec (timeout=0s): go get -v  
2025/04/24 17:56:48 [INFO] Build environment ready
2025/04/24 17:56:48 [INFO] Building Caddy
2025/04/24 17:56:48 [INFO] exec (timeout=0s): go mod tidy -e 
2025/04/24 17:56:49 [INFO] exec (timeout=0s): go build -o ***/caddy -ldflags -w -s -trimpath -tags nobadger,nomysql,nopgx 
# github.com/libdns/tencentcloud
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:57:25: invalid composite literal type libdns.Record
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:81:46: record.Name undefined (type libdns.Record has no field or method Name)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:82:47: record.Type undefined (type libdns.Record has no field or method Type)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:84:42: record.Value undefined (type libdns.Record has no field or method Value)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:100:37: record.ID undefined (type libdns.Record has no field or method ID)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:103:46: record.Name undefined (type libdns.Record has no field or method Name)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:104:47: record.Type undefined (type libdns.Record has no field or method Type)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:106:42: record.Value undefined (type libdns.Record has no field or method Value)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:123:37: record.ID undefined (type libdns.Record has no field or method ID)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:142:13: record.Name undefined (type libdns.Record has no field or method Name)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:142:13: too many errors
2025/04/24 17:57:01 [INFO] Cleaning up temporary folder: /tmp/buildenv_2025-04-24-1756.411936080
2025/04/24 17:57:01 [FATAL] exit status 1
@rehiy
Copy link
Collaborator

rehiy commented Apr 24, 2025

try to use this version, please
https://github.com/libdns/tencentcloud/releases/tag/v1.3.1

@undefined-moe
Copy link
Author

Use xcaddy build --with github.com/caddy-dns/tencentcloud --replace github.com/libdns/tencentcloud=github.com/libdns/[email protected] returns

/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:49:23: invalid composite literal type libdns.Record
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:66:22: record.Name undefined (type libdns.Record has no field or method Name)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:67:22: record.Type undefined (type libdns.Record has no field or method Type)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:69:22: record.Value undefined (type libdns.Record has no field or method Value)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:70:28: record.TTL undefined (type libdns.Record has no field or method TTL)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:98:44: record.ID undefined (type libdns.Record has no field or method ID)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:104:22: record.Name undefined (type libdns.Record has no field or method Name)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:105:22: record.Type undefined (type libdns.Record has no field or method Type)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:107:22: record.Value undefined (type libdns.Record has no field or method Value)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:108:28: record.TTL undefined (type libdns.Record has no field or method TTL)
/root/go/pkg/mod/github.com/libdns/[email protected]/client.go:108:28: too many errors

not sure if i'm doing it right

@rehiy
Copy link
Collaborator

rehiy commented Apr 24, 2025

It seems to be caused by the use of a new libDNS

@rehiy
Copy link
Collaborator

rehiy commented Apr 24, 2025

libdns version 0.2.3 no problem

Image

@rehiy
Copy link
Collaborator

rehiy commented Apr 24, 2025

wait for update to libdns v1

@lxhao61
Copy link

lxhao61 commented Apr 28, 2025

wait for update to libdns v1

libdns has been upgraded to v1.0​。

@undefined-moe
Copy link
Author

Can see caddy-dns/alidns fixes similar issue by these commits

libdns/alidns@6b14285
caddy-dns/alidns@c186f3d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants