Skip to content

Build errors using xcaddyΒ #8

@csawyerYumaed

Description

@csawyerYumaed

1st, I know nothing about go so perhaps I'm doing something wrong? I apologize if that's the case.

I think I followed the instructions properly. I tried downloading from caddy's build service first, but that didn't work. I'm trying to play with ECH/ESNI released in caddy v2.10.0

Go and Xcaddy were just installed today on Ubuntu 24.04.2 LTS.
user@host:~/go/bin$ go version
go version go1.24.2 linux/amd64
user@host:~/go/bin$ ./xcaddy build --with github.com/caddy-dns/vultr
user@host:~/go/bin$ ./xcaddy version
v0.4.4 h1:xstmMhsxrDF/1rnncpi+CLbBfxEP0PjjdtXe3YFwnuo=
...

2025/04/22 07:13:34 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /home/user/go/bin/caddy -ldflags -w -s -trimpath -tags nobadger,nomysql,nopgx
# github.com/libdns/vultr
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:47:14: invalid composite literal type libdns.Record
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:74:16: record.Name undefined (type libdns.Record has no field or method Name)
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:75:16: record.Type undefined (type libdns.Record has no field or method Type)
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:76:30: record.Value undefined (type libdns.Record has no field or method Value)
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:77:20: record.TTL undefined (type libdns.Record has no field or method TTL)
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:85:9: record.ID undefined (type libdns.Record has no field or method ID)
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:96:64: record.ID undefined (type libdns.Record has no field or method ID)
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:111:16: record.Name undefined (type libdns.Record has no field or method Name)
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:112:16: record.Type undefined (type libdns.Record has no field or method Type)
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:113:30: record.Value undefined (type libdns.Record has no field or method Value)
/home/zie/go/pkg/mod/github.com/libdns/[email protected]/client.go:113:30: too many errors
2025/04/22 07:14:26 [INFO] Cleaning up temporary folder: /tmp/buildenv_2025-04-22-0712.366305572
2025/04/22 07:14:26 [FATAL] exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions