From f6f029f224c11c9e9c35604a71cc430361d640c9 Mon Sep 17 00:00:00 2001 From: Elias Ojala Date: Tue, 4 Dec 2018 14:52:47 +0200 Subject: [PATCH 1/3] Fixed Gopath problem --- docs/web-servers/caddy/compile-caddy-from-source/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/web-servers/caddy/compile-caddy-from-source/index.md b/docs/web-servers/caddy/compile-caddy-from-source/index.md index 875310e95f4..6ba4d6c3929 100644 --- a/docs/web-servers/caddy/compile-caddy-from-source/index.md +++ b/docs/web-servers/caddy/compile-caddy-from-source/index.md @@ -30,7 +30,7 @@ You will need a current version of Go on your Linode. Read our guide on [install 2. Navigate to the Caddy directory and start the build: - cd $GOPATH/src/go/src/github.com/mholt/caddy + cd $GOPATH/src/github.com/mholt/caddy go run build.go -goos=linux -goarch=amd64 3. When the build finishes you will have a Caddy binary in the current directory. Move the binary to `/usr/bin` so that Caddy can function correctly: From 1bc791b77b2dde8932a039ce02839ed57126205a Mon Sep 17 00:00:00 2001 From: Elias Ojala Date: Tue, 4 Dec 2018 14:57:09 +0200 Subject: [PATCH 2/3] Fixed wrong folder problem --- docs/web-servers/caddy/compile-caddy-from-source/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/web-servers/caddy/compile-caddy-from-source/index.md b/docs/web-servers/caddy/compile-caddy-from-source/index.md index 6ba4d6c3929..4995d8cbdd2 100644 --- a/docs/web-servers/caddy/compile-caddy-from-source/index.md +++ b/docs/web-servers/caddy/compile-caddy-from-source/index.md @@ -30,7 +30,7 @@ You will need a current version of Go on your Linode. Read our guide on [install 2. Navigate to the Caddy directory and start the build: - cd $GOPATH/src/github.com/mholt/caddy + cd $GOPATH/src/github.com/mholt/caddy/caddy go run build.go -goos=linux -goarch=amd64 3. When the build finishes you will have a Caddy binary in the current directory. Move the binary to `/usr/bin` so that Caddy can function correctly: From d0753c36c77ce697ea7b8f5aaa6aca6f68f8f5cd Mon Sep 17 00:00:00 2001 From: leslitagordita Date: Wed, 26 Dec 2018 19:38:15 -0500 Subject: [PATCH 3/3] Add step to find GOPATH --- docs/web-servers/caddy/compile-caddy-from-source/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/web-servers/caddy/compile-caddy-from-source/index.md b/docs/web-servers/caddy/compile-caddy-from-source/index.md index 4995d8cbdd2..a5ffef5d60f 100644 --- a/docs/web-servers/caddy/compile-caddy-from-source/index.md +++ b/docs/web-servers/caddy/compile-caddy-from-source/index.md @@ -22,7 +22,11 @@ Caddy has recently updated their license, clearly defining what is considered pe You will need a current version of Go on your Linode. Read our guide on [installing Go](/docs/development/go/install-go-on-ubuntu/). -1. Pull Caddy from the source. If you followed our guide on installing Go, the `$GOPATH` is `/usr/local/go`, otherwise use `$GOPATH/drc` +1. Print your Go installation's current `$GOPATH`: + + go env GOPATH + +1. Pull Caddy from the source. Replace `$GOPATH` with the path retrieved in the previous step. cd $GOPATH/src go get -u github.com/mholt/caddy