#1136666 Missing build depends for caddy

Package:
caddy
Source:
caddy
Description:
Fast, lightweight web server with automatic HTTPS
Submitter:
Pirate Praveen
Date:
2026-07-14 14:57:01 UTC
Severity:
normal
Tags:
#1136666#5
Date:
2026-05-14 13:48:52 UTC
From:
To:
While
1. building caddy for trixie backports,
2. after rebuilding all the build dependencies with minimum required
dependencies mentioned in Build-Depeds
3. and passing them as --extra-package to sbuild,
4. build still fails with these errors,

src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:30:2:
cannot find package "github.com/caddyserver/zerossl" in any of:
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/caddyserver/caddy/v2/vendor/github.com/caddyserver/zerossl (vendor tree)
	/usr/lib/go-1.24/src/github.com/caddyserver/zerossl (from $GOROOT)
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/caddyserver/zerossl (from $GOPATH)
src/github.com/caddyserver/caddy/v2/modules/caddytls/ech.go:19:2: cannot
find package "github.com/cloudflare/circl/hpke" in any of:
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/caddyserver/caddy/v2/vendor/github.com/cloudflare/circl/hpke (vendor tree)
	/usr/lib/go-1.24/src/github.com/cloudflare/circl/hpke (from $GOROOT)
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/cloudflare/circl/hpke (from $GOPATH)
src/github.com/caddyserver/caddy/v2/modules/caddytls/ech.go:20:2: cannot
find package "github.com/cloudflare/circl/kem" in any of:
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/caddyserver/caddy/v2/vendor/github.com/cloudflare/circl/kem (vendor tree)
	/usr/lib/go-1.24/src/github.com/cloudflare/circl/kem (from $GOROOT)
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/cloudflare/circl/kem (from $GOPATH)
src/github.com/caddyserver/caddy/v2/modules/caddytls/automation.go:28:2:
cannot find package "github.com/mholt/acmez/v3" in any of:
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/caddyserver/caddy/v2/vendor/github.com/mholt/acmez/v3 (vendor tree)
	/usr/lib/go-1.24/src/github.com/mholt/acmez/v3 (from $GOROOT)
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/mholt/acmez/v3 (from $GOPATH)
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:31:2:
cannot find package "github.com/mholt/acmez/v3/acme" in any of:
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/caddyserver/caddy/v2/vendor/github.com/mholt/acmez/v3/acme (vendor tree)
	/usr/lib/go-1.24/src/github.com/mholt/acmez/v3/acme (from $GOROOT)
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/mholt/acmez/v3/acme (from $GOPATH)
src/github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/cel/decls.go:26:2:
cannot find package "cel.dev/expr" in any of:
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/caddyserver/caddy/v2/vendor/cel.dev/expr (vendor tree)
	/usr/lib/go-1.24/src/cel.dev/expr (from $GOROOT)
	/build/reproducible-path/caddy-2.11.2/build/src/cel.dev/expr (from $GOPATH)
src/github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/parser/helper.go:20:2:
cannot find package "github.com/antlr4-go/antlr/v4" in any of:
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/caddyserver/caddy/v2/vendor/github.com/antlr4-go/antlr/v4 (vendor tree)
	/usr/lib/go-1.24/src/github.com/antlr4-go/antlr/v4 (from $GOROOT)
	/build/reproducible-path/caddy-2.11.2/build/src/github.com/antlr4-go/antlr/v4 (from $GOPATH)

I will add these or update minimum versions in Build-Deps as part of
backporting caddy.

#1136666#12
Date:
2026-05-14 15:23:52 UTC
From:
To:
This is neede to fix those errors,

diff --git a/debian/control b/debian/control
index e21cbf8c..5c4ff36a 100644
--- a/debian/control
+++ b/debian/control
@@ -6,10 +6,13 @@ Testsuite: autopkgtest-pkg-go
  Build-Depends: debhelper-compat (= 13),
                 dh-golang,
                 golang-any,
+               golang-cel-expr-dev,
                 golang-github-masterminds-sprig-dev,
                 golang-github-alecthomas-chroma-v2-dev,
                 golang-github-aryann-difflib-dev,
                 golang-github-caddyserver-certmagic-dev (>= 0.16.0~),
+               golang-github-caddyserver-zerossl-dev,
+               golang-github-cloudflare-circl-dev,
                 golang-github-deruina-timberjack-dev,
                 golang-github-dustin-go-humanize-dev,
                 golang-github-go-chi-chi-dev,
@@ -19,7 +22,7 @@ Build-Depends: debhelper-compat (= 13),
                 golang-github-kimmachinegun-automemlimit-dev,
                 golang-github-klauspost-compress-dev,
                 golang-github-klauspost-cpuid-dev (>= 2.0.6),
-               golang-github-mholt-acmez-dev,
+               golang-github-mholt-acmez-v3-dev,
                 golang-github-naoina-toml-dev,
                 golang-github-pires-go-proxyproto-dev (>= 0.11.0-1~),
                 golang-github-prometheus-client-golang-dev,
@@ -40,7 +43,7 @@ Build-Depends: debhelper-compat (= 13),
                 golang-gopkg-yaml.v2-dev,
                 golang-opentelemetry-otel-dev,
                 golang-uber-automaxprocs-dev,
-               golang-github-antlr-antlr4-dev (>=4.11.1~),
+               golang-github-antlr4-go-antlr-dev,
                 golang-glog-dev,
                 golang-golang-x-text-dev,
                 golang-github-stoewer-go-strcase-dev,

It seems still not enough as there are more errors like

# github.com/caddyserver/caddy/v2/modules/caddytls
src/github.com/caddyserver/caddy/v2/modules/caddytls/zerosslissuer.go:65:21:
undefined: certmagic.ZeroSSLIssuer
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:154:22:
undefined: certmagic.DNSProvider
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:161:26:
undefined: certmagic.DNSProvider
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:167:34:
undefined: certmagic.DNSProvider
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:173:31:
cannot use &certmagic.DNS01Solver{…} (value of type
*certmagic.DNS01Solver) as "github.com/mholt/acmez/v3".Solver value in
assignment: *certmagic.DNS01Solver does not implement
"github.com/mholt/acmez/v3".Solver (wrong type for method CleanUp)
		have CleanUp(context.Context, "github.com/mholt/acmez/acme".Challenge)
error
		want CleanUp(context.Context,
"github.com/mholt/acmez/v3/acme".Challenge) error
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:174:4:
unknown field DNSManager in struct literal of type certmagic.DNS01Solver
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:174:26:
undefined: certmagic.DNSManager
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:214:3:
unknown field Profile in struct literal of type certmagic.ACMEIssuer
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:218:22:
cannot use iss.ExternalAccount (variable of type
*"github.com/mholt/acmez/v3/acme".EAB) as
*"github.com/mholt/acmez/acme".EAB value in struct literal
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:726:14:
undefined: certmagic.RenewalInfoGetter
src/github.com/caddyserver/caddy/v2/modules/caddytls/acmeissuer.go:218:22:
too many errors

Possibly need to update golang-github-caddyserver-certmagic-dev as well,
trying this.

#1136666#17
Date:
2026-05-15 12:35:05 UTC
From:
To:
The above error is gone after updating certmagic and now we have,

# github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/common/ast
src/github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/common/ast/conversion.go:181:8:
comp.GetIterVar2 undefined (type
*"google.golang.org/genproto/googleapis/api/expr/v1alpha1".Expr_Comprehension
has no field or method GetIterVar2)
src/github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/common/ast/conversion.go:210:38:
l.GetOptionalIndices undefined (type
*"google.golang.org/genproto/googleapis/api/expr/v1alpha1".Expr_CreateList
has no field or method GetOptionalIndices)
src/github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/common/ast/conversion.go:234:41:
e.GetOptionalEntry undefined (type
*"google.golang.org/genproto/googleapis/api/expr/v1alpha1".Expr_CreateStruct_Entry
has no field or method GetOptionalEntry)
src/github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/common/ast/conversion.go:265:58:
f.GetOptionalEntry undefined (type
*"google.golang.org/genproto/googleapis/api/expr/v1alpha1".Expr_CreateStruct_Entry
has no field or method GetOptionalEntry)
src/github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/common/ast/conversion.go:369:5:
unknown field IterVar2 in struct literal of type
"google.golang.org/genproto/googleapis/api/expr/v1alpha1".Expr_Comprehension
src/github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/common/ast/conversion.go:406:5:
unknown field OptionalIndices in struct literal of type
"google.golang.org/genproto/googleapis/api/expr/v1alpha1".Expr_CreateList
src/github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/common/ast/conversion.go:459:3:
unknown field OptionalEntry in struct literal of type
"google.golang.org/genproto/googleapis/api/expr/v1alpha1".Expr_CreateStruct_Entry
src/github.com/caddyserver/caddy/v2/vendor/github.com/google/cel-go/common/ast/conversion.go:511:3:
unknown field OptionalEntry in struct literal of type
"google.golang.org/genproto/googleapis/api/expr/v1alpha1".Expr_CreateStruct_Entry

We probably need to update golang-google-genproto-dev

#1136666#22
Date:
2026-06-01 14:45:14 UTC
From:
To:
Build dependencies are updated so it builds fine in trixie-backports. It
is also pushed to debian/sid branch.

#1136666#29
Date:
2026-07-14 14:55:46 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
caddy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1136666@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nilesh Patra <nilesh@debian.org> (supplier of updated caddy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 14 Jul 2026 19:45:33 +0530
Source: caddy
Architecture: source
Version: 2.11.4-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Changed-By: Nilesh Patra <nilesh@debian.org>
Closes: 1136666
Changes:
 caddy (2.11.4-1) unstable; urgency=medium
 .
   * Team Upload.
 .
   [ Nilesh Patra ]
   * Switch to regular salsa CI
   * Bump debhelper compatibility level to 14
   * New upstream version 2.11.4
   * d/rules: Update caddy path for bash completion and manpage
   * d/caddy.install: Install usr/bin/caddy
 .
 .
   [ Pirate Praveen ]
   * Update minimum versions of Build-Deps (Closes: #1136666)
Checksums-Sha1:
 6be25f6053856b542e3f6e6244a5aa29b56713f9 3322 caddy_2.11.4-1.dsc
 529114062a1cd66f0a45304f924a1c14778d67c3 24306 caddy_2.11.4.orig-dist.tar.gz
 f9a752124ca43e9aed78b4ba9edc23ea0d0bedc2 818049 caddy_2.11.4.orig.tar.gz
 344826fb356e207888ee96f53f802b7dec2e24e3 510396 caddy_2.11.4-1.debian.tar.xz
 17bf0bf45cc1f8ed57e74f9643712198935b3529 18842 caddy_2.11.4-1_amd64.buildinfo
Checksums-Sha256:
 5c27748bebc20b336a6881abc99d44a0d60bbd44804d3c556ed0ed7c9c0bba5f 3322 caddy_2.11.4-1.dsc
 a617947f1bc6466ae38aa6fada9735e071e9e9fdd205cab53e294b383292601e 24306 caddy_2.11.4.orig-dist.tar.gz
 84fd88def8de311b28029a50cd5b33971bcf145f766169ccc1e81fdd3a4a4a4a 818049 caddy_2.11.4.orig.tar.gz
 059a3b047e56176cc1dfe0e090826fda644743dd2122940483306fb96cd58d90 510396 caddy_2.11.4-1.debian.tar.xz
 2837f1631f03be02c6636eb035d39a7cc317a669e4b32616c9befa54406dedd5 18842 caddy_2.11.4-1_amd64.buildinfo
Files:
 aa1d785dd9901cb016e18b71c9ab85e7 3322 httpd optional caddy_2.11.4-1.dsc
 9cced2784afe46a601c1eb6a6248277a 24306 httpd optional caddy_2.11.4.orig-dist.tar.gz
 cfcc80b47a965a24f9b4bcc70e1e300f 818049 httpd optional caddy_2.11.4.orig.tar.gz
 07a0033703dabfa43167f8083961e2b0 510396 httpd optional caddy_2.11.4-1.debian.tar.xz
 0be74fc3979675942d7b16a7b7914b30 18842 httpd optional caddy_2.11.4-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iIgEARYKADAWIQSglbZu4JAkvuai8HIqJ5BL1yQ+2gUCalZHCBIcbmlsZXNoQGRl
Ymlhbi5vcmcACgkQKieQS9ckPtpqHgD+K3oFZ3MheeY+gBg24E5/ji8yXHCIaC7p
seFvgdEW0X8A/1RuaUVUnB7vBVknl8t1aim6UKm8bm+GDXg0stG4uc4C
=k6wK
-----END PGP SIGNATURE-----