sqlfmt icon indicating copy to clipboard operation
sqlfmt copied to clipboard

module declares its path as: github.com/HdrHistogram/hdrhistogram-go but was required as: github.com/codahale/hdrhistogram

Open shtrom opened this issue 4 years ago • 2 comments

Installing locally with go get github.com/mjibson/sqlfmt, I get the following error:

go: downloading github.com/mjibson/sqlfmt v0.4.0
...
go get: github.com/codahale/hdrhistogram@none updating to
        github.com/codahale/[email protected]: parsing go.mod:
        module declares its path as: github.com/HdrHistogram/hdrhistogram-go
                but was required as: github.com/codahale/hdrhistogram

It looks like the simplest fix is to add a go.mod file with the correct path mapping https://github.com/HdrHistogram/hdrhistogram-go/issues/30#issuecomment-696365251

shtrom avatar Oct 21 '21 02:10 shtrom

I've tried a few times to add a go.mod and the problem is cockroach's go.mod causes problems. I'm no longer in the Go space and I'm unlikely to try again. Would accept a PR though.

madelynnblue avatar Oct 21 '21 02:10 madelynnblue

For anyone that tries this: use https://github.com/cockroachdb/cockroach-gen in a replace module for cockroach to avoid any need on Make.

madelynnblue avatar Oct 25 '21 17:10 madelynnblue