go-graphite / graphite-clickhouse

Graphite cluster backend with ClickHouse support
MIT License
213 stars 52 forks source link

Make Errors with Go Version #285

Open switchtower opened 1 month ago

switchtower commented 1 month ago
make
go build -tags builtinassets -ldflags '-X main.BuildVersion=0.13.4' github.com/lomik/graphite-clickhouse
vendor/github.com/prometheus/common/model/labelset.go:20:2: package slices is not in GOROOT (/usr/lib/golang/src/slices)
note: imported by a module that requires go 1.21
make: *** [graphite-clickhouse] Error 1

Build errors saying a module requires 1.21 though the documentation says 1.18+ should work.

Hedius commented 1 month ago

would assume the readme is outdated? i opened a pull request updating prometheus a few months ago.

Hedius commented 1 month ago

https://github.com/go-graphite/graphite-clickhouse/blame/3d3a35a366e0630a0a260e2f80e0ea55dcafbe32/go.mod#L3

cannot remember if it was required to do that