tdewolff / minify

Go minifiers for web formats

Home Page:https://go.tacodewolff.nl/minify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile error in v2.20.8?

cfryanr opened this issue · comments

It seems like the source for v2.20.8 does not compile?

When trying to compile with Golang 1.21:

../../.gvm/pkgsets/go1.21.3/global/pkg/mod/github.com/tdewolff/minify/v2@v2.20.8/minify/minify.go:29:26: cannot use &aspMinifier (value of type **"github.com/tdewolff/minify/v2/html".Minifier) as "github.com/tdewolff/minify/v2".Minifier value in argument to Default.Add: **"github.com/tdewolff/minify/v2/html".Minifier does not implement "github.com/tdewolff/minify/v2".Minifier (missing method Minify)

Also see the similar linter error messages on this recent commit in GitHub: 5b4030c#diff-e8de53b601839cb92c2ee710ceaec336eccfe3f07212f1de3cd7f50f3c2a9583

At first glance it seems like there is an extra & accidentally causing the variable to be used as a pointer to a pointer?

This was fixed in v2.20.9

Thank you!