Building specific version

I’m attempting to build a specific version of Caddy (any version really, testing this with v0.11.5), running this:

$ go get
$ go get
$ cd $GOPATH/src/
$ git checkout v0.11.5
HEAD is now at 80dfb8b vendor: Update lego; notes for v0.11.5

$ go run build.go
$ caddy --version
Caddy (untracked dev build) (unofficial)

$ git describe --exact-match HEAD

I target a specific version, which from my understanding, the builds script should understand is an actual version (describing HEAD), but the built binary says “untracked dev version”.
This is not detailed in the build instructions, but it might as well be me not too familiar with Go building and how you use it differently.

Run ./caddy -version instead.

1 Like

Thanks! Odd that it builds two binaries, and the one in Go’s binary path is not the correct one.

The one in your PATH is put there with go get, which does not use build.go.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.