xcaddy build v2.3.0 --with Unable to obtain the specified version

This issue has been created since 2021-04-21.

Adding the --with component will invalidate the specified version. Can you help solve this problem?

1. Instruction one

[[email protected] caddy]# xcaddy build v2.3.0 \

--with github.com/caddyserver/forwardproxy \
--with github.com/caddy-dns/cloudflare

2021/04/21 09:53:24 [INFO] Temporary folder: /tmp/buildenv_2021-04-21-0953.136560700
2021/04/21 09:53:24 [INFO] Writing main module: /tmp/buildenv_2021-04-21-0953.136560700/main.go
2021/04/21 09:53:24 [INFO] Initializing Go module
2021/04/21 09:53:24 [INFO] exec (timeout=10s): /usr/bin/go mod init caddy
go: creating new go.mod: module caddy
2021/04/21 09:53:24 [INFO] Pinning versions
2021/04/21 09:53:24 [INFO] exec (timeout=0s): /usr/bin/go get -d -v github.com/caddyserver/caddy/[email protected]
2021/04/21 09:53:25 [INFO] exec (timeout=0s): /usr/bin/go get -d -v github.com/caddyserver/forwardproxy
go: github.com/caddyserver/forwardproxy upgrade => v0.0.0-20201205091008-b3a96fb34dbe
2021/04/21 09:53:26 [INFO] exec (timeout=0s): /usr/bin/go get -d -v github.com/caddy-dns/cloudflare
go: github.com/caddy-dns/cloudflare upgrade => v0.0.0-20210401224357-964e47d3890e
2021/04/21 09:53:26 [INFO] Build environment ready
2021/04/21 09:53:26 [INFO] Building Caddy
2021/04/21 09:53:26 [INFO] exec (timeout=0s): /usr/bin/go mod tidy
2021/04/21 09:53:27 [INFO] exec (timeout=0s): /usr/bin/go build -o /etc/caddy/caddy -ldflags -w -s -trimpath
2021/04/21 09:53:30 [INFO] Build complete: ./caddy
2021/04/21 09:53:30 [INFO] Cleaning up temporary folder: /tmp/buildenv_2021-04-21-0953.136560700
[[email protected] caddy]# ./caddy version
v2.4.0-beta.2 h1:DUaK4qtL3T0/gAm0fVVkHgcMN04r4zGpfPUZWHRR8QU=

2. 1. Instruction two
[[email protected] caddy]# xcaddy build v2.3.0
2021/04/21 09:54:21 [INFO] Temporary folder: /tmp/buildenv_2021-04-21-0954.549121710
2021/04/21 09:54:21 [INFO] Writing main module: /tmp/buildenv_2021-04-21-0954.549121710/main.go
2021/04/21 09:54:21 [INFO] Initializing Go module
2021/04/21 09:54:21 [INFO] exec (timeout=10s): /usr/bin/go mod init caddy
go: creating new go.mod: module caddy
2021/04/21 09:54:21 [INFO] Pinning versions
2021/04/21 09:54:21 [INFO] exec (timeout=0s): /usr/bin/go get -d -v github.com/caddyserver/caddy/[email protected]
2021/04/21 09:54:22 [INFO] Build environment ready
2021/04/21 09:54:22 [INFO] Building Caddy
2021/04/21 09:54:22 [INFO] exec (timeout=0s): /usr/bin/go mod tidy
2021/04/21 09:54:23 [INFO] exec (timeout=0s): /usr/bin/go build -o /etc/caddy/caddy -ldflags -w -s -trimpath
2021/04/21 09:54:26 [INFO] Build complete: ./caddy
2021/04/21 09:54:26 [INFO] Cleaning up temporary folder: /tmp/buildenv_2021-04-21-0954.549121710
[[email protected] caddy]# ./caddy version
v2.3.0 h1:fnrqJLa3G5vfxcxmOH/+kJOcunPLhSBnjgIvjXV/QTA=

mholt wrote this answer on 2021-04-21

Probably a duplicate of #54.

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
Connected but no DNS resolving? 11 2019-12-16 2022-07-20
Request - Is there a possibility to provide ready to use JAR? 3 2021-08-20 2022-08-17
Global `log_success` and `log_failure` are not honored in reports 0 2022-03-04 2022-09-13
issues related to initDatabase 2 2021-09-27 2022-09-26
How to find user country and user category 1 2022-02-16 2022-09-10
VINS-Mono crashed on ubuntu 18.0 1 2021-03-13 2022-07-09
decouplin feature detection from vins optimization 0 2021-03-10 2022-07-09
cv_bridge build error 1 2021-03-12 2022-07-09
Build error ‘integer_sequence’ is not a member of ‘std’ 2 2021-03-07 2022-07-09
Can I use fisheye camera 0 2021-03-10 2022-07-09
What is in the pose graph 0 2021-03-10 2022-07-09
Error: Cannot load native addon because loading addons is disabled 1 2022-05-01 2022-09-11
is it possible to change position of datepicker icon? 1 2022-04-12 2022-09-19
R-29 bots try to fix unreachable pump preventing any other tasks 5 2022-09-14 2022-09-18
Contributor documentation: Running tests, working in IntelliJ 7 2021-05-18 2022-08-31
pacapt 3.0.1 issue with `_homebrew_init: command not found` 6 2021-07-03 2022-09-11
Testing using package spec level collections 3 2021-06-28 2022-09-25
Document non Open Source parts 2 2022-01-11 2022-09-05
When parsing a date, it returns the excel-date format 1 2022-06-05 2022-09-19
TypeError: input.replace is not a function 0 2022-08-12 2022-09-19
2022/01/27 8:30:00 in excel is parsed into 2022-01-27T00:29:17.000Z 1 2022-01-14 2022-09-19
`options` is required in type WorkSheet 0 2022-06-01 2022-09-19
Ability to write a message to HTML report 2 2020-11-09 2022-09-18
reading the value from property file and placing in uri request and getting error 2 2020-11-19 2022-09-18
No CSV report files being generated 8 2021-01-22 2022-09-18
vulnerability : CVE-2022-29526 present in 1.0.0 release 0 2022-08-08 2022-09-19
[New Chain / Network] 0 2021-11-08 2022-09-16
PJAX局部刷新开启和没开启一样效果,一跳转新的一个页面,音乐就会暂停 3 2021-08-30 2022-08-18
Better Error Handling if routes are not "recognized" 0 2021-04-29 2022-08-28
bug: Unable to Delete S3 Objects using the Java SDK 7 2022-02-23 2022-09-05
Pre-bind bootloader to bootfs at installation time 0 2022-03-07 2022-09-27
Add Documentation for Subscribe API (.NET SDK) 0 2022-06-23 2022-09-26
PublicIPCountLimitReached not mentioned on page 2 2022-03-16 2022-03-10
Does sys.label LIKE '%bus%' still work if using the new Azure.Messaging.ServiceBus client library? 3 2022-03-16 2022-03-10
YAML not properly formatted 2 2022-03-16 2022-03-10
Update `legacy-widget/index.php` in `@wordpress/widgets` package. 0 2021-09-28 2022-08-14
`Event\Dispatcher::getInstance()` leaks scope 0 2022-07-18 2022-09-27
Firmware for Sonoff Zigbee Bridge Pro 9 2022-05-21 2022-09-18
`license: "document"` and `doJsonLd: true` causes a silent error 3 2021-10-04 2022-09-24
[BUG]: Error: module ldc.intrinsics import LLVM_version not found with ldc 1.20 4 2022-09-07 2022-09-18
Change lifetime funding to estimate on grants detail page 4 2022-08-11 2022-09-17
Set up a LoadBalancer service with a custom private IP 0 2022-05-18 2022-09-16
Semantic of mraa_uart_set_timeout with zero read timeout unclear 0 2021-07-14 2022-09-07
Integrate a Python linter for QC 0 2022-05-24 2022-09-04
Using/Adding `feature_weights` in R 7 2022-02-15 2022-07-09
unable to install on new Dell Precision 7920 with Ubuntu 18.04 1 2021-10-14 2022-09-09
Can't get my compiled code correctly mapped to my source code with Parcel v2.7.0 1 2022-09-05 2022-09-21
combinedClickable does not expose MouseClickScope 1 2022-03-03 2022-09-12
Reticulum for Production 2 2022-01-13 2022-09-17
Migrate to 2018 edition and update dependencies 3 2021-08-07 2022-09-26