hermes icon indicating copy to clipboard operation
hermes copied to clipboard

invalid version: unknown revision 000000000000

Open patlux opened this issue 6 months ago • 5 comments

I'm getting the following error, any idea?

$ go get github.com/matcornic/[email protected]
go: downloading github.com/imdario/mergo v0.0.0-00010101000000-000000000000
go: github.com/matcornic/hermes imports
        github.com/Masterminds/sprig imports
        github.com/imdario/mergo: github.com/imdario/[email protected]: invalid version: unknown revision 000000000000

$ go version
go1.24.3 darwin/arm64

patlux avatar Jun 24 '25 21:06 patlux

ok weird. it worked by installing v1.2.0 first and upgrading to v1.3.0 afterwards:

$ go get github.com/matcornic/[email protected]
$ go get github.com/matcornic/[email protected]

patlux avatar Jun 24 '25 21:06 patlux

damn now it throws runtime errors:

[00] # github.com/jaytaylor/html2text
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:41:35: undefined: tablewriter.Border
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:50:37: undefined: tablewriter.MAX_ROW_WIDTH
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:51:37: undefined: tablewriter.COLUMN
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:52:37: undefined: tablewriter.ROW
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:53:37: undefined: tablewriter.CENTER
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:54:37: undefined: tablewriter.ALIGN_DEFAULT
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:55:37: undefined: tablewriter.ALIGN_DEFAULT
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:56:37: undefined: tablewriter.ALIGN_DEFAULT
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:58:37: undefined: tablewriter.NEWLINE
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:62:37: undefined: tablewriter.Border
[00] ../../../../go/pkg/mod/github.com/jaytaylor/[email protected]/html2text.go:62:37: too many errors

patlux avatar Jun 24 '25 21:06 patlux

got same issue, i'm use go1.24.4

akfaiz avatar Jun 29 '25 08:06 akfaiz

look like the issue is from dependency html2text, https://github.com/jaytaylor/html2text/issues/67

akfaiz avatar Jun 29 '25 11:06 akfaiz

Incase anyone runs into this issue. Add the following to your go.mod file

replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.16

More context here

zewolfe avatar Aug 18 '25 15:08 zewolfe