pngcrush: update to v2.12.6 with fixed v2 module handling; automatically handle build tags based on cgo availability

This commit is contained in:
mappu 2020-07-25 13:06:54 +12:00
parent 2f92eaac1b
commit 79a3f7ea1d
4 changed files with 8 additions and 10 deletions

4
go.mod
View File

@ -1,7 +1,9 @@
module code.ivysaur.me/thumbnail
require (
code.ivysaur.me/imagequant v2.12.2-go1.2+incompatible
code.ivysaur.me/imagequant/v2 v2.12.6
github.com/hashicorp/golang-lru v0.5.0
golang.org/x/image v0.0.0-20180601115456-af66defab954
)
go 1.13

8
go.sum
View File

@ -1,9 +1,5 @@
code.ivysaur.me/imagequant v0.0.0-20180609052806-6a468707fb1b h1:bVCFA91vhlKDRLtb/32eu02fPtHKxK4TpCkX6oJxXV8=
code.ivysaur.me/imagequant v0.0.0-20180609052806-6a468707fb1b/go.mod h1:1Pi+M0oJFDYLtGuCkPGPpb4OGCYudvp/SG6jdVcO+WU=
code.ivysaur.me/imagequant v2.9.0-go1.1+incompatible h1:Sh8PH5ED6J6nMj2YbsSGmh1+Q/6CVTObITsXmHXsyC8=
code.ivysaur.me/imagequant v2.9.0-go1.1+incompatible/go.mod h1:1Pi+M0oJFDYLtGuCkPGPpb4OGCYudvp/SG6jdVcO+WU=
code.ivysaur.me/imagequant v2.12.2-go1.2+incompatible h1:lae+MZwMGir1Llekj8SUm/GS8Vu223v0rYbVQNv85Q4=
code.ivysaur.me/imagequant v2.12.2-go1.2+incompatible/go.mod h1:1Pi+M0oJFDYLtGuCkPGPpb4OGCYudvp/SG6jdVcO+WU=
code.ivysaur.me/imagequant/v2 v2.12.6 h1:xYrGj6GOdAcutmzqBxG7bDZ70r4jYHADOCZ+ktyMU3Y=
code.ivysaur.me/imagequant/v2 v2.12.6/go.mod h1:seCAm0sP2IBsb1YNBj4D+EZovIuGe16+6Xo0aiGyhDU=
github.com/hashicorp/golang-lru v0.0.0-20180201235237-0fb14efe8c47 h1:UnszMmmmm5vLwWzDjTFVIkfhvWF1NdrmChl8L2NUDCw=
github.com/hashicorp/golang-lru v0.0.0-20180201235237-0fb14efe8c47/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.0 h1:CL2msUPvZTLb5O648aiLNJw3hnBxN2+1Jq8rCOH9wdo=

View File

@ -1,4 +1,4 @@
//+build withimagecrush
//+build cgo
package thumbnail
@ -9,7 +9,7 @@ import (
"image/color"
"image/png"
"code.ivysaur.me/imagequant"
"code.ivysaur.me/imagequant/v2"
)
func goImageToRgba32(im image.Image) []byte {

View File

@ -1,4 +1,4 @@
// +build !withimagecrush
//+build !cgo
package thumbnail