制作 Prometheus 失败:未定义 sort.Slice

failure in make Prometheus: undefined sort.Slice

我在从源代码构建时遇到错误。 Go 版本是:

> go version
go version go1.7.2 linux/amd64

错误是:

prometheus head.go undefined: sort.Slice

Prometheus 恐怕需要用 go 1.8 编译。 sort.Slice 是在该版本中引入的。