accept replacements with branches of github forks

This issue has been created since 2021-02-26.

Closes #50

francislavoie wrote this answer on 2021-02-26

Have you tested that this works?

xcaddy build --with github.com/caddyserver/[email protected]=github.com/klzgrad/[email protected]

Actual usecase from someone else who ran into this right after I reported it 😅

I'll try it out myself later when I get to my env, but impl looks about right to me.

mohammed90 wrote this answer on 2021-02-26

Have you tested that this works?

xcaddy build --with github.com/caddyserver/[email protected]=github.com/klzgrad/[email protected]

Actual usecase from someone else who ran into this right after I reported it 😅

I'll try it out myself later when I get to my env, but impl looks about right to me.

Works:

~/projects/caddyserver/xcaddy/cmd/xcaddy ./xcaddy build --with github.com/caddyserver/[email protected]=github.com/klzgrad/[email protected] --
output ./caddy-fwdproxy
2021/02/26 17:18:17 [INFO] Temporary folder: /Users/mohammed/projects/caddyserver/xcaddy/cmd/xcaddy/buildenv_2021-02-26-1718.581327436
2021/02/26 17:18:17 [INFO] Writing main module: /Users/mohammed/projects/caddyserver/xcaddy/cmd/xcaddy/buildenv_2021-02-26-1718.581327436/main.go
2021/02/26 17:18:17 [INFO] Initializing Go module
2021/02/26 17:18:17 [INFO] exec (timeout=10s): /usr/local/bin/go mod init caddy
go: creating new go.mod: module caddy
go: to add module requirements and sums:
	go mod tidy
2021/02/26 17:18:17 [INFO] Replace github.com/caddyserver/forwardproxy => github.com/klzgrad/[email protected]
2021/02/26 17:18:17 [INFO] exec (timeout=10s): /usr/local/bin/go mod edit -replace github.com/caddyserver/forwardproxy=github.com/klzgrad/[email protected]
2021/02/26 17:18:17 [INFO] Pinning versions
2021/02/26 17:18:17 [INFO] exec (timeout=0s): /usr/local/bin/go get -d -v github.com/caddyserver/caddy/v2
go get: added github.com/caddyserver/caddy/v2 v2.3.0
2021/02/26 17:18:24 [INFO] Build environment ready
2021/02/26 17:18:24 [INFO] Building Caddy
2021/02/26 17:18:24 [INFO] exec (timeout=0s): /usr/local/bin/go mod tidy
go: downloading github.com/klzgrad/forwardproxy v0.0.0-20210120121422-9b4a5a242bd6
go: found github.com/caddyserver/forwardproxy in github.com/caddyserver/forwardproxy v0.0.0-00010101000000-000000000000
2021/02/26 17:18:30 [INFO] exec (timeout=0s): /usr/local/bin/go build -o /Users/mohammed/projects/caddyserver/xcaddy/cmd/xcaddy/caddy-fwdproxy -ldflags -w -s -trimpath
2021/02/26 17:19:06 [INFO] Build complete: ./caddy-fwdproxy
2021/02/26 17:19:06 [INFO] Cleaning up temporary folder: /Users/mohammed/projects/caddyserver/xcaddy/cmd/xcaddy/buildenv_2021-02-26-1718.581327436

 ~/projects/caddyserver/xcaddy/cmd/xcaddy ./caddy-fwdproxy list-modules                                                                                                               
admin.api.load
...
http.handlers.forward_proxy
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
Problems receiving bootup message 4 2021-02-15 2022-05-17
引擎初始化后,切换路由,下次即无法打开设计器 20 2022-03-23 2022-09-25
How to check if connection has worked? 2 2021-04-03 2022-09-14
Very large transparent SVG should not count as LCP 3 2021-02-12 2022-09-16
Separate visualization for each spatial audio channel 0 2022-02-08 2022-09-28
Can't execute my a.out 5 2017-10-11 2022-01-04
ParameterizedTest - parallelization 3 2017-10-31 2022-01-04
I have added several pets, how can I delete one? 6 2022-02-18 2022-09-04
How to change aria2c identifer or add entitlement to the executable file 0 2022-04-28 2022-09-12
sorry how can i use mkdir ? 1 2021-09-14 2022-08-31
Feat: Add filename option to not shorten path segments 10 2021-08-13 2022-09-24
Debugging cpp, cuda file inside package 1 2022-03-12 2022-09-10
<-> Add Copy Console logs <-> 2 2018-12-16 2022-09-01
PropPatch handler should be called only once for bulk updates 1 2021-08-23 2022-09-28
Make edit:command-history easier, and faster, to use with tools like fzf 10 2020-06-21 2022-01-30
NPM publishing mistake? 2 2021-08-10 2022-08-29
Chart uses networking.k8s.io/v1beta1 for Ingress, possible problem with K8S 1.22+ 2 2021-12-05 2022-08-17
迅雷云盘WebDAV上传报错 但其实文件已经上传完成 1 2022-03-14 2022-09-25
Enhancements: Refactor Conditional Modal and use react hook form for validation 0 2022-02-07 2022-09-20
Improve reliability of import CSV feature 0 2021-12-21 2022-09-20
Session connectShare hangs on wrong share name 1 2022-05-26 2022-09-10
[email protected]_7: download via aria2 failed 1 2022-08-02 2022-09-27
Cannot use mapping defined in vendor classes 2 2021-04-05 2022-09-22
Github Actions compiler 1 2021-11-11 2022-09-27
建议:同一个项目构建不同分支,目前会覆盖,也就是说只能同时存在某个项目的一个分支可访问 3 2021-11-20 2022-06-12
Out of order exemplars with Prometheus Exporter 22 2022-02-10 2022-08-10
Avoid using TBQueue for StakeDistribution 3 2022-02-14 2022-09-20
Can't case split an `HitInt` with some already existing cases 1 2021-12-17 2022-08-27
[Loot Tracker] Mahogany logs are valued at 0gp 3 2022-04-29 2022-09-20
issue on Facebook.loginWithReadPermissionAsync 1 2022-01-10 2022-08-27
from torch._C import * ImportError: numpy.core.multiarray failed to import 1 2021-08-12 2022-07-18
Upgrade of GroupAnalysis is required 0 2022-05-02 2022-07-12
bignum.wasm was renamed to as-bignum and published to npm 5 2020-01-22 2022-07-23
Regarding prediction file 4 2021-09-06 2022-09-11
Math.sqrt(-1) should raise error 1 2022-03-09 2022-09-28
Delays in loading ESM prevent turbo.js from detecting the server-side installation 0 2021-04-23 2022-09-17
Notification problem on iOS for liveStream only 1 2021-09-16 2022-09-12
Introduce "grobs" in 5.2 0 2021-01-27 2022-08-25
Add the ability to turn on debug output 4 2015-01-05 2022-09-18
Add additional accent color based on wallpaper 2 2021-05-13 2022-09-12
[Terminal> Command Palette]: Screen Reader is not announcing any info about '>'(more options) for 'New Tab' list item. 4 2021-12-27 2022-09-14
ss最近不能用了吗?前几个月一直好用,突然就不能用了。。。。2021.8 1 2021-08-03 2022-09-27
Update mail-source/sink apps to use Greenmail 1 2022-05-20 2022-09-16
Revise HttpRequestFunctionConfiguration configuration in favor of auto-configured by Spring Boot WebClient.Builder 6 2022-05-27 2022-09-16
Add possibility (e.g. cmake flag) to disable or redirect error output 1 2020-11-19 2022-09-15
Turn instruction missing at angled junction / Berlin, Alexanderstr ->Karl-Liebknecht-Str 2 2022-07-06 2022-08-26
Add backend support to disconnect google account 0 2021-12-13 2021-12-10
List of alternatives for undefined types includes illegal system-made internal types 3 2020-08-31 2022-01-19
Track down why dotneteng-status is writing to the staging kusto rather than prod for timeline triage issues 2 2022-04-01 2022-08-04
[go_router] Not able to navigate using tab key when using nested Navigators and ShellRoute 0 2022-09-28 2022-09-22