README: Add example for building from a github fork (#115)

This commit is contained in:
Francis Lavoie 2022-09-01 19:43:36 -04:00 committed by GitHub
parent e6eb334d4e
commit 0bd3c1dfd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,6 +89,9 @@ You can even replace Caddy core using the `--with` flag:
``` ```
$ xcaddy build \ $ xcaddy build \
--with github.com/caddyserver/caddy/v2=../../my-caddy-fork --with github.com/caddyserver/caddy/v2=../../my-caddy-fork
$ xcaddy build \
--with github.com/caddyserver/caddy/v2=github.com/my-user/caddy/v2@some-branch
``` ```
This allows you to hack on Caddy core (and optionally plug in extra modules at the same time!) with relative ease. This allows you to hack on Caddy core (and optionally plug in extra modules at the same time!) with relative ease.