Build failed at `certmagic.CleanUpOwnLocks`

This issue has been created since 2022-03-31.

Fail with error message

go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
2022/03/31 11:22:53 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /root/caddy -gcflags all=-N -l
# github.com/caddyserver/caddy/v2
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/caddy.go:601:28: not enough arguments in call to certmagic.CleanUpOwnLocks
	have (*zap.Logger)
	want (context.Context, *zap.Logger)
/root/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/sigtrap_posix.go:38:31: not enough arguments in call to certmagic.CleanUpOwnLocks
	have (*zap.Logger)
	want (context.Context, *zap.Logger)
# github.com/lucas-clemente/quic-go/internal/qtls
/root/go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/qtls/go118.go:5:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration

francislavoie wrote this answer on 2022-03-31

What command did you run, exactly?

If you're building with a tagged version of Caddy, you'll need to build with Go 1.17 for now, not Go 1.18. We've fixed the issue on the master branch but it hasn't been released yet.

gsmlg wrote this answer on 2022-03-31

I install xcaddy with
go install github.com/caddyserver/xcaddy/cmd/[email protected]
and run

XCADDY_DEBUG=1 xcaddy build \                                                                                   130 ↵ ──(Thu,Mar31)─┘
    --with github.com/caddy-dns/cloudflare \
    --with github.com/caddy-dns/route53 \
    --with github.com/caddy-dns/vultr \
    --with github.com/gsmlg-dev/caddy-dns-zdns \
    --with github.com/mholt/caddy-webdav
francislavoie wrote this answer on 2022-03-31

Are you using Go 1.17 or 1.18?

Like I said, you'll need to use 1.17 if you want to build Caddy v2.4.6, i.e. the latest stable version.

If you're fine with building from the master branch, you can run xcaddy build master to do so, for now, which will work with 1.18

gsmlg wrote this answer on 2022-03-31

I'm using go version go1.18 linux/amd64.

gsmlg wrote this answer on 2022-03-31

Thanks to your reply.

Using go version go1.17.8 darwin/arm64 still not working.

Change to caddy master works.

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
Uppercase table name. 2 2022-03-12 2022-09-16
Error with Postgres 10 in Windows when Insert and Delete 8 2022-03-23 2022-09-16
How to download in termux 0 2022-07-03 2022-07-16
get-sensorhistory 'Don't know how to convert double value '20,10975' (20,1098).' 15 2021-05-03 2022-09-12
Inference very slow on mac 2 2022-03-02 2022-09-03
Trojan:Script/Oneeva.A!ml Windows Defender 3 2021-05-01 2022-08-27
Rotation doesn't work properly 0 2022-04-05 2022-08-22
Vue server reloads on package update only once 1 2022-02-25 2022-07-22
type annotations: Replace Union[a, b] with a | b, Optional[a] with a | None 1 2022-05-25 2022-09-17
How to pass Display to container 5 2021-05-05 2022-07-22
redroid容器会同时被主机端的鼠标键盘控制? 2 2021-06-21 2022-08-08
BIOCRO model doesn't show up on running PEcAn in docker 1 2022-07-22 2022-09-16
Stop supporting 32-bit 10 2021-12-23 2022-09-24
Upgrade from 1.18 to 1.19 led to a ORMException error with ID field 1 2022-08-24 2022-09-13
Connections change their positions after the saved document is reopened. 4 2021-07-28 2022-09-25
[BUG] Strange log entries 3 2021-07-28 2022-09-01
Add a benchmark for the compare function 1 2021-03-16 2022-09-26
ArgumentError (Invalid argument(s): Failed to load dynamic library on Windows (isar-3.00-dev-15) 1 2022-09-17 2022-09-26
IOS ProgressBar Notifications are creating repeatedly 2 2021-12-28 2022-07-16
0.3.0 breaks compilation with current Nest.js version 1 2021-03-23 2022-09-07
useAxios - expose promise 2 2022-02-01 2022-07-15
st_apply stopped working for FUN=var 3 2021-05-28 2022-08-14
Update 'quay.io/projectquay/golang' version to v1.17 in docker-compose.yaml to support Linux/ARM64 1 2021-09-03 2022-08-31
Issues when uploading gifs in the lesson 1 2022-02-24 2022-09-28
[BUG] pkg.component.prometheus.service.args arguments is not working 9 2021-06-29 2022-09-20
Cannot provide an empty int-valued list 5 2020-04-24 2022-09-19
how to solve globals do not match error 4 2022-07-30 2022-08-31
[Feature] Add BackgroundJobWorker to JobRunrConfigurationResult 2 2022-06-23 2022-09-13
[BUG] Does not recover from ETCD snapshot restore when PVC size in snap is smaller than current size 3 2021-12-10 2022-08-27
Respect `filter` parameter on `/context` api 2 2022-02-07 2022-09-20
webircgateway doesn't send ircd password correctly if the password contains a '#' character 1 2021-08-19 2022-09-28
"Sample code: Return table data as JSON" does not work 2 2022-05-26 2022-09-08
[Gradle Plugin] `k8sBuild` `k8sResource` and `k8sApply` tasks don't respect skip options 0 2021-09-30 2022-09-10
Incomplete error message for invalid property binding type 0 2021-03-22 2022-09-26
Cannot transform some tiff images 3 2020-02-27 2022-06-16
Add flower 1 2021-07-30 2022-01-01
forward in onError link doesn't send any requests 6 2022-04-18 2022-09-25
Set User-Agent header to setup-jfrog-cli-github-action/VERSION 2 2020-04-12 2022-09-23
为什么会有多个用户下表被同步啊 0 2020-05-09 2022-01-05
Build failure of mono-traversable-1.0.15.2 with GHC 9.2 4 2021-09-20 2022-08-10
some entries in context-menu are not translated (german, french, ? ) 12 2021-08-03 2022-09-23
Feature Request: Add Dark Theme 18 2020-06-11 2022-09-09
ios example posetrackingpu does not build 3 2022-02-06 2022-09-23
bug:在编译大量ue的shader任务时,有时会出现找不到输入文件的错误 0 2022-07-29 2022-09-21
macOS M1上tnn的性能和onnxruntime 相差多大? 4 2022-03-10 2022-08-22
how to build macOS with corml on M1 arm? 11 2022-03-14 2022-09-17
Failing test(s): TestAccIAM2DenyPolicy_iamDenyPolicyUpdate 0 2022-04-14 2022-09-25
SignJar.excludes missing input annotation 1 2021-06-27 2022-09-17
Can't call send on channel layer from celery task 5 2022-02-04 2022-09-21
Getting IllegalStateException: Tried to access a JS module before the React instance was fully set up. Calls to ReactContext#getJSModule should only happen once initialize() has been called on your native module. 4 2021-09-21 2022-08-31