Package Details: minify 2.20.19-1

Git Clone URL: https://aur.archlinux.org/minify.git (read-only, click to copy)
Package Base: minify
Description: Minifier CLI for HTML, CSS, JS, JSON, SVG and XML
Upstream URL: https://github.com/tdewolff/minify
Keywords: css html js json minifier minify svg web xml
Licenses: MIT
Submitter: 4679
Maintainer: 4679 (meepzh, tdewolff)
Last Packager: tdewolff
Votes: 13
Popularity: 0.68
First Submitted: 2016-05-03 08:05 (UTC)
Last Updated: 2024-03-26 18:31 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

tdewolff commented on 2022-05-23 21:09 (UTC)

Thanks, should be resolved now.

twheel commented on 2022-05-23 18:39 (UTC)

Getting this error today:

# github.com/tdewolff/minify/v2/minify
minify/minify.go:23:115: cannot use js.Minify (value of type func(m *"github.com/tdewolff/minify/v2".M, w io.Writer, r io.Reader, params map[string]string) error) as type "github.com/tdewolff/minify/v2".Minifier in argument to Default.AddRegexp:
        func(m *"github.com/tdewolff/minify/v2".M, w io.Writer, r io.Reader, params map[string]string) error does not implement "github.com/tdewolff/minify/v2".Minifier (missing Minify method)
ok      github.com/tdewolff/minify/v2   (cached)
FAIL    github.com/tdewolff/minify/v2/benchmarks [build failed]
ok      github.com/tdewolff/minify/v2/cmd/minify        (cached)
ok      github.com/tdewolff/minify/v2/css       (cached)
ok      github.com/tdewolff/minify/v2/html      (cached)
# github.com/tdewolff/minify/v2/minify [github.com/tdewolff/minify/v2/minify.test]
minify/minify.go:23:115: cannot use js.Minify (value of type func(m *"github.com/tdewolff/minify/v2".M, w io.Writer, r io.Reader, params map[string]string) error) as type "github.com/tdewolff/minify/v2".Minifier in argument to Default.AddRegexp:
        func(m *"github.com/tdewolff/minify/v2".M, w io.Writer, r io.Reader, params map[string]string) error does not implement "github.com/tdewolff/minify/v2".Minifier (missing Minify method)
ok      github.com/tdewolff/minify/v2/js        (cached)
ok      github.com/tdewolff/minify/v2/json      (cached)
FAIL    github.com/tdewolff/minify/v2/minify [build failed]
ok      github.com/tdewolff/minify/v2/svg       (cached)
ok      github.com/tdewolff/minify/v2/xml       (cached)
FAIL
==> ERROR: A failure occurred in check().
    Aborting...

tdewolff commented on 2022-04-27 02:55 (UTC)

You're right, when enabling LTO explicitly I was able to reproduce the problem. I've fixed this by disabling CGO as the library doesn't use any CGO. Thanks!

tdewolff commented on 2022-04-27 02:43 (UTC)

Thanks @freswa for the comment, but the package seems to build fine on my end. Additionally, LTO should be a problem when using CGO, and this package does not use CGO so as far as I know there shouldn;t even be an LTO involved as we're not linking with the C toolchain...happy to hear if I'm wrong though..

freswa commented on 2022-04-26 16:44 (UTC)

Could you add an options array with "!lto" please?

options=(!lto)

With the introduction of lto, this pkg doesn't compile anymore.

Thank you

kescherAUR commented on 2022-01-21 00:04 (UTC)

Please remove the "v" prefix from the pkgver.

tdewolff commented on 2020-01-02 14:58 (UTC)

Thanks @bertptrs, it now gets build from source!

bertptrs commented on 2019-12-18 09:46 (UTC)

The checksum is for the bash completion is currently incorrect. The current checksum should be 25f25a205ca071471daab6b1c8eeb16e0b1c8609844b158b85c76344eb4bbc31.

Aside from that, this package should just build from source since it's available. If you do, you can just use the bash completion script from the main tarbal. Pulling the master for the bash completion is just going to cause issues every time it gets pushed.

You can see check how to package a Go program here: https://wiki.archlinux.org/index.php/Go_package_guidelines

tdewolff commented on 2019-12-11 18:18 (UTC)

Thanks @sjuxax, should be fixed now.

sjuxax commented on 2019-12-10 20:25 (UTC)

FYI the checksum is out of date for minify_bash_tab_completion.