Package Details: minify 2.23.8-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: 16
Popularity: 0.24
First Submitted: 2016-05-03 08:05 (UTC)
Last Updated: 2025-05-21 13:28 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

marek22k commented on 2025-04-29 18:29 (UTC)

@tdewolff Works now, thanks for fixing!

tdewolff commented on 2025-04-29 14:40 (UTC)

Thanks marek22k, should be fixed now!

marek22k commented on 2025-04-29 13:00 (UTC)

Mhh, after the update I cannot build it anymore:

==> Making package: minify 2.23.2-1 (Di 29 Apr 2025 13:00:43 UTC)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading v2.23.2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 7569k    0 7569k    0     0  4180k      0 --:--:--  0:00:01 --:--:--  9.8M
==> Validating source files with sha256sums...
    v2.23.2.tar.gz ... Passed
==> Extracting sources...
  -> Extracting v2.23.2.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
==> Starting check()...
ok      github.com/tdewolff/minify/v2   0.060s
?       github.com/tdewolff/minify/v2/bindings/js   [no test files]
?       github.com/tdewolff/minify/v2/bindings/py   [no test files]
--- FAIL: TestCreateTasks (0.00s)
    --- FAIL: TestCreateTasks/a.js_=>_ (0.00s)
    main_test.go:53: unexpected a.js => a.js
    --- FAIL: TestCreateTasks/dir/b.js_=>_ (0.00s)
    main_test.go:53: unexpected dir/b.js => dir/b.js
    --- FAIL: TestCreateTasks/dir_=>_ (0.00s)
    main_test.go:53: unexpected dir/b.js => dir/b.js
FAIL
FAIL    github.com/tdewolff/minify/v2/cmd/minify    0.004s
ok      github.com/tdewolff/minify/v2/css   0.010s
ok      github.com/tdewolff/minify/v2/html  0.009s
ok      github.com/tdewolff/minify/v2/js    0.048s
ok      github.com/tdewolff/minify/v2/json  0.004s
ok      github.com/tdewolff/minify/v2/minify    0.004s
ok      github.com/tdewolff/minify/v2/svg   0.009s
ok      github.com/tdewolff/minify/v2/xml   0.004s
FAIL
==> ERROR: A failure occurred in check().
    Aborting...

tdewolff commented on 2024-03-26 18:32 (UTC)

Thanks Nestor, this should be fixed now :-)

Nestor_013 commented on 2024-03-26 14:38 (UTC) (edited on 2024-03-26 14:40 (UTC) by Nestor_013)

Hi since your last change, I got a

go: downloading golang.org/x/sys v0.16.0
-linkmode requires external (cgo) linking, but cgo is not enabled
==> ERROR: A failure occurred in build().
Aborting...

Any clue on how to solve this ?

ahoehne commented on 2024-03-24 14:01 (UTC)

thanks alot, that fix worked =) the default seems to be 1, so we didn't needed to set CGO_ENABLED=1 explicitly, we just had problems with it being set to 0.

tdewolff commented on 2024-03-24 13:22 (UTC)

I've pushed out a fix, can you please test it @ahoehne?

tdewolff commented on 2024-03-24 13:10 (UTC)

Hi @ahoehne, there is no C code in this library and thus CGO is not required to build this package. Disabling CGO has some benefits I forgot...

The problem is that using the PIE buildmode on a Raspberry requires CGO regardless. Is there a way to use an if-statement in makepkg depending on the platform? Or we could just enable CGO anyways...

ahoehne commented on 2024-03-24 12:18 (UTC) (edited on 2024-03-24 12:55 (UTC) by ahoehne)

Hi, just wanted to install this package on my Raspberry (4B) running archlinuxforarm.

Thanks for supplying the aur package =)

It compiled successfully (tests also passing) and seems to work great with following changes:

added arch 'armv7h'

export CGO_ENABLED=1

without the CGO_ENABLED setting i received following error:

-buildmode=pie requires external (cgo) linking, but cgo is not enabled

i just checked the history and saw an commit two years ago where you disabled CGO, would this still be needed or do you have an idea how we could set that export depending on the architecture, so we can get it running without breaking something ?

shaneallgeier commented on 2022-05-30 16:52 (UTC)

Thanks!