Overview of the Issue
Installing the github.com/hashicorp/consul/api v1.31.0 subpackage as a go dependency reports the following:
module declares its path as: github.com/hashicorp/go-metrics
but was required as: github.com/armon/go-metrics
Which is caused by the renaming of the metrics package. Related PR hashicorp/serf#760 fixes that in serf AFAIK.
Reproduction Steps
go get -u github.com/hashicorp/consul/api@v1.31.0 on any go project