Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build caddy from source error #2609

Closed
suntong opened this issue May 12, 2019 · 1 comment
Closed

Build caddy from source error #2609

suntong opened this issue May 12, 2019 · 1 comment

Comments

@suntong
Copy link

suntong commented May 12, 2019

Following on #2560, which is closed now, I tracked down to the very latest solution, which should be:
#2560 (comment)

And here is the quote of the relevant parts:

. . .

If you want to build Caddy v0.11.5, you will have to use these instructions. (GO111MODULE should be set to auto - export GO111MODULE=auto)

  1. go get github.com/mholt/caddy
  2. go get github.com/caddyserver/builds
  3. cd $GOPATH/src/github.com/mholt/caddy/caddy
  4. git checkout tags/v0.11.5
  5. go run build.go

However, when I tried it, I got:

$ go get github.com/caddyserver/builds
# cd .; git clone https://github.com/caddyserver/builds /path/to/src/github.com/caddyserver/builds
Cloning into '/path/to/src/github.com/caddyserver/builds'...
fatal: could not read Username for 'https://github.com': terminal prompts disabled
package github.com/caddyserver/builds: exit status 128

without it, when doing the next step, go run build.go, I'll get build.go:41:2: cannot find package "github.com/caddyserver/builds" in any of ... error.

Thus, I'd like to know, what's the latest solution to build caddy from source?

PS. the above error is due to that https://github.com/caddyserver/builds no longer exist.

@mholt
Copy link
Member

mholt commented May 13, 2019

As you can see, those instructions are for an old version of Caddy.

Please use the build instructions in the README instead: https://github.com/mholt/caddy#build

@mholt mholt closed this as completed May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants