Closed Monviech closed 3 months ago
It's an incompability in the build between this and another DNS Provider
--with github.com/caddy-dns/vultr
I'm closing this here, thank you.
I am running into this same error now.
Two days ago, I was able to build the program successfully, but have since switched computers, and running (as far as I can tell) the exact same build file, I'm now getting this same issue.
I am getting the error even when building with simply xcaddy build --with github.com/caddy-dns/porkbun
and no other modules, so it does not appear to be a compatibility issue.
EDIT: Silly of me not to check, I hadn't realized Caddy updated to 2.8 today. That explains why it's happening now, at least.
Right now Im maintaining a small patch that fixes the issue in the build I maintain. I made a PR in libdns/porkbun too. I hope its going to be looked at some point.
Right now I build it like this to avoid the error:
so two --with, one for porkbun, and one for libdns with custom patch.
i'm also receiving this error after trying to recreate caddy using the latest 2.8 image. note this is the only module i'm using to build caddy:
FROM caddy:2-builder-alpine AS builder
RUN xcaddy build \
--with github.com/caddy-dns/porkbun
FROM caddy:2-alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
edit: reverting back to caddy v2.7.6 allows it to build, so this module needs updated before uses can upgrade to caddy v2.8.
Same getting error building on 2.8. @Monviech thanks for the patch it works fine.
@woolmonkey, what script are you running to build with 2.8?
I tried the two --with and it still fails at the same spot.
xcaddy build --with github.com/caddy-dns/porkbun --replace github.com/libdns/porkbun=github.com/Monviech/libdns-porkbun@main
should do the trick
(at least until a new release of libdns/porkbun
is created)
@adidalal, will that work with 2.8?
New releases of libdns/porkbun & caddy-dns/porkbun are now published I've compiled V2.8.4 with this plugin successfully, so I think we're good now thanks to @Monviech helping out
Thank you all!!!
@Niallfitzy1 thank you a lot :D
Hello :)
My current caddy build:
https://github.com/Monviech/os-caddy-plugin/blob/main/usr/local/bin/README.md#current-build
Error I'm getting:
How I solve this build error:
in
func (record pkbnRecord)
I changepriority
touint(priority)
Then the build works for me.