From c8da8ca6739f34b8302c377de66605724512a994 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 7 May 2020 13:01:33 -0600 Subject: Update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 8be07ef..a0c324e 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,6 @@ Requirements: - [Go 1.14 or newer](https://golang.org/dl/) -- Do NOT disable [Go modules](https://github.com/golang/go/wiki/Modules) (`export GO111MODULE=on`) ### For development @@ -81,7 +80,7 @@ _**Note:** These steps [will not embed proper version information](https://githu Using [our builder tool](https://github.com/caddyserver/xcaddy)... ``` -$ xcaddy build +$ xcaddy build ``` ...the following steps are automated: @@ -90,8 +89,9 @@ $ xcaddy build 2. Change into it: `cd caddy` 3. Copy [Caddy's main.go](https://github.com/caddyserver/caddy/blob/master/cmd/caddy/main.go) into the empty folder. Add imports for any custom plugins you want to add. 4. Initialize a Go module: `go mod init caddy` -5. Pin Caddy version: `go get github.com/caddyserver/caddy/v2@TAG` replacing `TAG` with a git tag or commit. You can also pin any plugin versions similarly. -6. Compile: `go build` +5. (Optional) Pin Caddy version: `go get github.com/caddyserver/caddy/v2@TAG` replacing `TAG` with a git tag or commit. +6. (Optional) Add plugins by adding their import: `_ "IMPORT_PATH"` +7. Compile: `go build` -- cgit v1.2.3