Go errors when updating Caddy to latest version: [FATAL] exit status 1

This issue has been created since 2021-09-28.

Hi, tried to update Caddy 2 a few times recently and every time it fails. Here's the log and the command I use to update:

2021/09/28 02:16:35 [INFO] Temporary folder: /tmp/buildenv_2021-09-28-0216.045682969
2021/09/28 02:16:35 [INFO] Writing main module: /tmp/buildenv_2021-09-28-0216.045682969/main.go
2021/09/28 02:16:35 [INFO] Initializing Go module
2021/09/28 02:16:35 [INFO] exec (timeout=10s): /usr/local/go/bin/go mod init caddy
go: creating new go.mod: module caddy
go: to add module requirements and sums:
        go mod tidy
2021/09/28 02:16:35 [INFO] Pinning versions
2021/09/28 02:16:35 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddyserver/caddy/v2
go get: added github.com/beorn7/perks v1.0.1
go get: added github.com/caddyserver/caddy/v2 v2.4.5
go get: added github.com/caddyserver/certmagic v0.14.5
go get: added github.com/cespare/xxhash/v2 v2.1.1
go get: added github.com/golang/protobuf v1.5.2
go get: added github.com/google/uuid v1.3.0
go get: added github.com/klauspost/cpuid/v2 v2.0.9
go get: added github.com/libdns/libdns v0.2.1
go get: added github.com/matttproud/golang_protobuf_extensions v1.0.1
go get: added github.com/mholt/acmez v1.0.0
go get: added github.com/miekg/dns v1.1.42
go get: added github.com/prometheus/client_golang v1.11.0
go get: added github.com/prometheus/client_model v0.2.0
go get: added github.com/prometheus/common v0.26.0
go get: added github.com/prometheus/procfs v0.6.0
go get: added go.uber.org/atomic v1.7.0
go get: added go.uber.org/multierr v1.6.0
go get: added go.uber.org/zap v1.19.0
go get: added golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e
go get: added golang.org/x/net v0.0.0-20210614182718-04defd469f4e
go get: added golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
go get: added golang.org/x/term v0.0.0-20210503060354-a79de5458b56
go get: added golang.org/x/text v0.3.6
go get: added google.golang.org/protobuf v1.27.1
2021/09/28 02:16:36 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddy-dns/cloudflare
go get: added github.com/caddy-dns/cloudflare v0.0.0-20210607183747-91cf700356a1
go get: added github.com/libdns/cloudflare v0.1.0
2021/09/28 02:16:37 [INFO] Build environment ready
2021/09/28 02:16:37 [INFO] Building Caddy
2021/09/28 02:16:37 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /root/caddy -ldflags -w -s -trimpath
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:30:2: missing go.sum entry for module providing package github.com/Masterminds/sprig/v3 (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:31:2: missing go.sum entry for module providing package github.com/alecthomas/chroma/formatters/html (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/caddyconfig/httpcaddyfile/serveroptions.go:25:2: missing go.sum entry for module providing package github.com/dustin/go-humanize (imported by github.com/caddyserver/caddy/v2/modules/logging); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/acmeserver/acmeserver.go:29:2: missing go.sum entry for module providing package github.com/go-chi/chi (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:29:2: missing go.sum entry for module providing package github.com/google/cel-go/cel (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:30:2: missing go.sum entry for module providing package github.com/google/cel-go/checker/decls (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:31:2: missing go.sum entry for module providing package github.com/google/cel-go/common/types (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:32:2: missing go.sum entry for module providing package github.com/google/cel-go/common/types/ref (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:33:2: missing go.sum entry for module providing package github.com/google/cel-go/common/types/traits (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:34:2: missing go.sum entry for module providing package github.com/google/cel-go/ext (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:35:2: missing go.sum entry for module providing package github.com/google/cel-go/interpreter/functions (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/encode/gzip/gzip.go:24:2: missing go.sum entry for module providing package github.com/klauspost/compress/gzip (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/encode/gzip); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/encode/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/encode/zstd/zstd.go:21:2: missing go.sum entry for module providing package github.com/klauspost/compress/zstd (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/encode/zstd); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/encode/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/app.go:28:2: missing go.sum entry for module providing package github.com/lucas-clemente/quic-go/http3 (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/frontmatter.go:9:2: missing go.sum entry for module providing package github.com/naoina/toml (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/acmeserver/acmeserver.go:30:2: missing go.sum entry for module providing package github.com/smallstep/certificates/acme (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/acmeserver/acmeserver.go:31:2: missing go.sum entry for module providing package github.com/smallstep/certificates/acme/api (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/acmeserver/acmeserver.go:32:2: missing go.sum entry for module providing package github.com/smallstep/certificates/acme/db/nosql (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/ca.go:28:2: missing go.sum entry for module providing package github.com/smallstep/certificates/authority (imported by github.com/caddyserver/caddy/v2/modules/caddypki); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddytls/internalissuer.go:29:2: missing go.sum entry for module providing package github.com/smallstep/certificates/authority/provisioner (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/ca.go:29:2: missing go.sum entry for module providing package github.com/smallstep/certificates/db (imported by github.com/caddyserver/caddy/v2/modules/caddypki); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/certificates.go:21:2: missing go.sum entry for module providing package github.com/smallstep/cli/crypto/x509util (imported by github.com/caddyserver/caddy/v2/modules/caddypki); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/acmeserver/acmeserver.go:36:2: missing go.sum entry for module providing package github.com/smallstep/nosql (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/ca.go:30:2: missing go.sum entry for module providing package github.com/smallstep/truststore (imported by github.com/caddyserver/caddy/v2/modules/caddypki); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:34:2: missing go.sum entry for module providing package github.com/yuin/goldmark (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:35:2: missing go.sum entry for module providing package github.com/yuin/goldmark-highlighting (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:36:2: missing go.sum entry for module providing package github.com/yuin/goldmark/extension (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:37:2: missing go.sum entry for module providing package github.com/yuin/goldmark/parser (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:38:2: missing go.sum entry for module providing package github.com/yuin/goldmark/renderer/html (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:36:2: missing go.sum entry for module providing package google.golang.org/genproto/googleapis/api/expr/v1alpha1 (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/logging/filewriter.go:28:2: missing go.sum entry for module providing package gopkg.in/natefinch/lumberjack.v2 (imported by github.com/caddyserver/caddy/v2/modules/logging); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/frontmatter.go:10:2: missing go.sum entry for module providing package gopkg.in/yaml.v2 (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
2021/09/28 02:16:37 [INFO] Cleaning up temporary folder: /tmp/buildenv_2021-09-28-0216.045682969
2021/09/28 02:16:37 [FATAL] exit status 1
francislavoie wrote this answer on 2021-09-28

What version of Go are you using? Please make sure you're on Go 1.17.

recklessnl wrote this answer on 2021-09-28

Latest version of go as of today:

[email protected]:~# go version
go version go1.17.1 linux/amd64
[email protected]:~# /root/go/bin/xcaddy build --with github.com/caddy-dns/cloudflare
2021/09/28 13:49:20 [INFO] Temporary folder: /tmp/buildenv_2021-09-28-1349.756221810
2021/09/28 13:49:20 [INFO] Writing main module: /tmp/buildenv_2021-09-28-1349.756221810/main.go
2021/09/28 13:49:20 [INFO] Initializing Go module
2021/09/28 13:49:20 [INFO] exec (timeout=10s): /usr/local/go/bin/go mod init caddy
go: creating new go.mod: module caddy
go: to add module requirements and sums:
        go mod tidy
2021/09/28 13:49:20 [INFO] Pinning versions
2021/09/28 13:49:20 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddyserver/caddy/v2
go get: added github.com/beorn7/perks v1.0.1
go get: added github.com/caddyserver/caddy/v2 v2.4.5
go get: added github.com/caddyserver/certmagic v0.14.5
go get: added github.com/cespare/xxhash/v2 v2.1.1
go get: added github.com/golang/protobuf v1.5.2
go get: added github.com/google/uuid v1.3.0
go get: added github.com/klauspost/cpuid/v2 v2.0.9
go get: added github.com/libdns/libdns v0.2.1
go get: added github.com/matttproud/golang_protobuf_extensions v1.0.1
go get: added github.com/mholt/acmez v1.0.0
go get: added github.com/miekg/dns v1.1.42
go get: added github.com/prometheus/client_golang v1.11.0
go get: added github.com/prometheus/client_model v0.2.0
go get: added github.com/prometheus/common v0.26.0
go get: added github.com/prometheus/procfs v0.6.0
go get: added go.uber.org/atomic v1.7.0
go get: added go.uber.org/multierr v1.6.0
go get: added go.uber.org/zap v1.19.0
go get: added golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e
go get: added golang.org/x/net v0.0.0-20210614182718-04defd469f4e
go get: added golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
go get: added golang.org/x/term v0.0.0-20210503060354-a79de5458b56
go get: added golang.org/x/text v0.3.6
go get: added google.golang.org/protobuf v1.27.1
2021/09/28 13:49:21 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddy-dns/cloudflare
go get: added github.com/caddy-dns/cloudflare v0.0.0-20210607183747-91cf700356a1
go get: added github.com/libdns/cloudflare v0.1.0
2021/09/28 13:49:21 [INFO] Build environment ready
2021/09/28 13:49:21 [INFO] Building Caddy
2021/09/28 13:49:21 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /root/caddy -ldflags -w -s -trimpath
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:30:2: missing go.sum entry for module providing package github.com/Masterminds/sprig/v3 (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:31:2: missing go.sum entry for module providing package github.com/alecthomas/chroma/formatters/html (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/caddyconfig/httpcaddyfile/serveroptions.go:25:2: missing go.sum entry for module providing package github.com/dustin/go-humanize (imported by github.com/caddyserver/caddy/v2/modules/logging); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/acmeserver/acmeserver.go:29:2: missing go.sum entry for module providing package github.com/go-chi/chi (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:29:2: missing go.sum entry for module providing package github.com/google/cel-go/cel (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:30:2: missing go.sum entry for module providing package github.com/google/cel-go/checker/decls (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:31:2: missing go.sum entry for module providing package github.com/google/cel-go/common/types (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:32:2: missing go.sum entry for module providing package github.com/google/cel-go/common/types/ref (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:33:2: missing go.sum entry for module providing package github.com/google/cel-go/common/types/traits (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:34:2: missing go.sum entry for module providing package github.com/google/cel-go/ext (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:35:2: missing go.sum entry for module providing package github.com/google/cel-go/interpreter/functions (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/encode/gzip/gzip.go:24:2: missing go.sum entry for module providing package github.com/klauspost/compress/gzip (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/encode/gzip); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/encode/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/encode/zstd/zstd.go:21:2: missing go.sum entry for module providing package github.com/klauspost/compress/zstd (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/encode/zstd); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/encode/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/app.go:28:2: missing go.sum entry for module providing package github.com/lucas-clemente/quic-go/http3 (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/frontmatter.go:9:2: missing go.sum entry for module providing package github.com/naoina/toml (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/acmeserver/acmeserver.go:30:2: missing go.sum entry for module providing package github.com/smallstep/certificates/acme (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/acmeserver/acmeserver.go:31:2: missing go.sum entry for module providing package github.com/smallstep/certificates/acme/api (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/acmeserver/acmeserver.go:32:2: missing go.sum entry for module providing package github.com/smallstep/certificates/acme/db/nosql (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/ca.go:28:2: missing go.sum entry for module providing package github.com/smallstep/certificates/authority (imported by github.com/caddyserver/caddy/v2/modules/caddypki); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddytls/internalissuer.go:29:2: missing go.sum entry for module providing package github.com/smallstep/certificates/authority/provisioner (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/ca.go:29:2: missing go.sum entry for module providing package github.com/smallstep/certificates/db (imported by github.com/caddyserver/caddy/v2/modules/caddypki); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/certificates.go:21:2: missing go.sum entry for module providing package github.com/smallstep/cli/crypto/x509util (imported by github.com/caddyserver/caddy/v2/modules/caddypki); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/acmeserver/acmeserver.go:36:2: missing go.sum entry for module providing package github.com/smallstep/nosql (imported by github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddypki/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddypki/ca.go:30:2: missing go.sum entry for module providing package github.com/smallstep/truststore (imported by github.com/caddyserver/caddy/v2/modules/caddypki); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:34:2: missing go.sum entry for module providing package github.com/yuin/goldmark (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:35:2: missing go.sum entry for module providing package github.com/yuin/goldmark-highlighting (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:36:2: missing go.sum entry for module providing package github.com/yuin/goldmark/extension (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:37:2: missing go.sum entry for module providing package github.com/yuin/goldmark/parser (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/tplcontext.go:38:2: missing go.sum entry for module providing package github.com/yuin/goldmark/renderer/html (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/celmatcher.go:36:2: missing go.sum entry for module providing package google.golang.org/genproto/googleapis/api/expr/v1alpha1 (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/logging/filewriter.go:28:2: missing go.sum entry for module providing package gopkg.in/natefinch/lumberjack.v2 (imported by github.com/caddyserver/caddy/v2/modules/logging); to add:
        go get github.com/caddyserver/caddy/v2/modules/[email protected]
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/frontmatter.go:10:2: missing go.sum entry for module providing package gopkg.in/yaml.v2 (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
        go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
2021/09/28 13:49:22 [INFO] Cleaning up temporary folder: /tmp/buildenv_2021-09-28-1349.756221810
2021/09/28 13:49:22 [FATAL] exit status 1
[email protected]:~#

mholt wrote this answer on 2021-09-28

Hmm which version of xcaddy? I feel like we fixed something in xcaddy to work with Go 1.17 modules.

jimen0 wrote this answer on 2021-09-30

Hi @mholt @francislavoie - I believe this was fixed by #47.

I reproduced it using github.com/caddyserver/xcaddy/cmd/[email protected] and 1.17.1. It works with 0.1.8 which includes the change.

:~$ docker container run --rm -it golang:1.17 bash
[email protected]:/go# go install github.com/caddyserver/xcaddy/cmd/[email protected]
go: downloading github.com/caddyserver/xcaddy v0.1.7
go: downloading github.com/Masterminds/semver/v3 v3.1.0
[email protected]:/go# xcaddy build
2021/09/30 16:14:24 [INFO] Temporary folder: /tmp/buildenv_2021-09-30-1614.2082854788
2021/09/30 16:14:24 [INFO] Writing main module: /tmp/buildenv_2021-09-30-1614.2082854788/main.go
2021/09/30 16:14:24 [INFO] Initializing Go module
2021/09/30 16:14:24 [INFO] exec (timeout=10s): /usr/local/go/bin/go mod init caddy
go: creating new go.mod: module caddy
...
/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/templates/frontmatter.go:10:2: missing go.sum entry for module providing package gopkg.in/yaml.v2 (imported by github.com/caddyserver/caddy/v2/modules/caddyhttp/templates); to add:
	go get github.com/caddyserver/caddy/v2/modules/caddyhttp/[email protected]
2021/09/30 16:14:47 [INFO] Cleaning up temporary folder: /tmp/buildenv_2021-09-30-1614.2082854788
2021/09/30 16:14:47 [FATAL] exit status 1
More Details About Repo
Owner Name caddyserver
Repo Name xcaddy
Full Name caddyserver/xcaddy
Language Go
Created Date 2020-03-21
Updated Date 2022-09-22
Star Count 381
Watcher Count 14
Fork Count 72
Issue Count 3

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Confused about Dataset Usage 1 2022-06-27 2022-09-21
Clarifications and documentation improvements in `iodata.basis` 0 2021-04-03 2022-09-26
🐛 [ErrorProne] Add curly braces around the nested statement(s) in this 'else' block. 0 2021-07-11 2022-05-21
Tree shaking chart.js 1 2022-01-27 2022-09-21
Gitlab CI Jobs randomly fail 3 2021-01-22 2022-08-16
Psi relaxation of end points is broken 1 2021-03-06 2022-09-18
add load_explainer function 2 2020-11-10 2022-08-09
joeyNMT 1.1/Google Colab - uses device:cpu instead of GPU 13 2021-01-18 2022-07-26
Is it possible to change the teacher checkpoint at every epoch during the distillation process? 1 2022-03-30 2022-09-27
Powershell giving warning "-force not used" 2 2021-12-30 2022-09-24
Understanding the whole process 0 2022-03-16 2022-08-09
Bug: External backend destination is empty 0 2021-04-23 2022-08-12
STL warnings when compiling for ARM32 1 2021-12-06 2022-08-29
spatSample could benefit from an equivalent to sampleStratified's `exp` argument 1 2022-06-22 2022-09-17
RangeError [ERR_INVALID_OPT_VALUE] 4 2019-09-19 2022-09-15
Change working directory back to original directory 5 2019-08-31 2022-09-16
Expose 3-hour data 2 2020-08-07 2022-01-19
Bit selection of vector signal was missing in generated verilog codes. 1 2021-03-12 2022-09-09
Update url returns wrong version 6 2021-08-03 2022-07-28
remove desc as hard dep 2 2021-10-15 2022-05-18
Есть ли возможность установить TakeProfit/StopLoss? 0 2021-01-14 2022-08-21
sso-auth throwing 404 1 2019-08-03 2022-09-29
Add cargo to the Docker image 22 2021-09-04 2022-09-15
[Bug] Short command options do not work 3 2022-09-09 2022-09-20
[GlobalKey#ead10 MenuScreen] error 1 2021-02-01 2022-07-31
Error in /soy+espa%C3%B1/au:g 0 2021-03-25 2022-09-25
add option to notcurses-input to disable mouse events 1 2022-01-28 2022-09-21
slideshow improvements [feature request] 2 2017-07-12 2022-09-18
Zoom keyboard shortcuts 7 2017-07-19 2022-09-07
Correct uniqueness requirement for ops in API docs 0 2022-05-23 2022-08-01
Docker builds failing without mini_portile2 3 2022-08-24 2022-09-18
Can't import last week's Account Map "December Multisig Test CA+PD+WM" 1 2020-12-24 2022-09-11
Confused with the models - false positives 28 2020-05-01 2022-09-26
[bug] helptags will fail 8 2021-08-09 2022-09-21
insufficent margin issue when creating order 20 2021-11-16 2022-09-15
Update MDVA-33289 Magento patch: Javascript in address at checkout 0 2021-07-30 2022-08-29
Release v1.7.1 0 2021-11-07 2021-12-20
A recent fix for R-type Leo 9 2022-05-08 2022-08-25
proposal: errors: change New to return a type that implements Is 4 2021-09-27 2022-09-22
clips: use clip name as filename for downloads 1 2022-07-17 2022-09-13
nav: tap on map to select destination 0 2022-04-05 2022-09-13
OSAL wrapper around QT 0 2022-07-01 2022-09-17
discuss: a new structure of Apache APISIX website 12 2021-09-16 2022-09-17
PhoneAccount permission issue 1 2022-04-27 2022-09-16
Manually adding geoip2 crashes docker 10 2020-04-17 2022-08-22
[Question] How to use Playwright Test with a test project and shared project? 9 2022-07-04 2022-09-03
[Feature Request] 移动端使用 ColorPicker 无法进行拖动选择颜色 / The mobile end cannot drag to select the color using colorpicker 1 2022-03-21 2022-09-23
Fix alt heys 5 2021-03-07 2022-01-08
How does Android use IEC 61937 audio source code direct output? 9 2022-03-16 2022-09-23
style.css: less offensive text-shadow in .about b 1 2012-08-14 2022-02-16