Installation¶
dflockd is a single Go binary. Build from source or go install.
Prerequisites¶
- Go 1.23 or newer (
go.moddeclaresgo 1.23and a1.26.2toolchain). Earlier releases work for the client, not for the server.
go install¶
Drops the dflockd binary into $GOBIN (typically ~/go/bin).
Build from source¶
make build injects the version string from the VERSION make
variable; make build VERSION=v2.0.0-rc1 is the typical invocation
for a release.
Verify¶
Client library¶
The Go client is a separate import:
See the Go client docs for the API.
What's not in this binary¶
- The benchmark tool lives at
./cmd/bench—go run ./cmd/bench --helpfrom a checkout. It's a development utility, not part of the release. - The complexity reporter is at
./tools/complexity— also a development utility.