Building a versioned Athens binary from source

You can do that easily with just few commands:


git clone
cd athens
make build-ver VERSION="0.2.0"


git clone
cd athens
$version = "0.2.0"
$date = (Get-Date).ToUniversalTime()
go build -ldflags "-X$version -X$date" -o athens ./cmd/proxy

This will give you a binary named athens. You can print the version and time information by running:

 ./athens -version

which should return something like:

Build Details:
        Version:        0.2.0
        Date:           2018-12-13-20:51:06-UTC
Fork me on GitHub