diff --git a/CHANGELOG.md b/CHANGELOG.md index afbce56..b1f4e8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [dev] + +- Switch to go mods - go (>= 1.11 required) + + ## [0.0.3] - Detect & skip animated GIFs diff --git a/Makefile b/Makefile index 623867a..bf5e5f8 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,6 @@ build = echo "\n\nBuilding $(1)-$(2)" && GOOS=$(1) GOARCH=$(2) go build ${LDFLAG && bzip2 dist/goptimize_${VERSION}_$(1)_$(2) goptimize: *.go - go get github.com/disintegration/imaging golang.org/x/image/bmp golang.org/x/image/tiff github.com/axllent/gitrel github.com/spf13/pflag go build ${LDFLAGS} -o goptimize rm -rf /tmp/go-* @@ -16,7 +15,6 @@ clean: release: mkdir -p dist rm -f dist/goptimize_${VERSION}_* - go get github.com/disintegration/imaging golang.org/x/image/bmp golang.org/x/image/tiff github.com/axllent/gitrel github.com/spf13/pflag $(call build,linux,amd64) $(call build,linux,386) $(call build,linux,arm) diff --git a/README.md b/README.md index 7ea00cc..9b8f044 100644 --- a/README.md +++ b/README.md @@ -57,11 +57,16 @@ Options: ## Install Download the appropriate binary from the [releases](https://github.com/axllent/goptimize/releases/latest), or if you have golang installed + + +### Build requirements + +Go >= 1.11 required. + ``` go get github.com/axllent/goptimize ``` - ## TODO Some ideas for the future: diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..cc6b4c9 --- /dev/null +++ b/go.mod @@ -0,0 +1,10 @@ +module github.com/axllent/goptimize + +go 1.13 + +require ( + github.com/axllent/gitrel v0.0.0-20190920100556-8fb3317ae1cd + github.com/disintegration/imaging v1.6.1 + github.com/spf13/pflag v1.0.5 + golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..212a7c9 --- /dev/null +++ b/go.sum @@ -0,0 +1,10 @@ +github.com/axllent/gitrel v0.0.0-20190920100556-8fb3317ae1cd h1:cJgMzRxCEzJiI95DxIOgrpCxwBqcUQU0foCuGTB1F4o= +github.com/axllent/gitrel v0.0.0-20190920100556-8fb3317ae1cd/go.mod h1:p7Ab0oyyqKbcVmclkdRR9+pw8b5RZlMlDXQ6iplJiQ4= +github.com/disintegration/imaging v1.6.1 h1:JnBbK6ECIZb1NsWIikP9pd8gIlTIRx7fuDNpU9fsxOE= +github.com/disintegration/imaging v1.6.1/go.mod h1:xuIt+sRxDFrHS0drzXUlCJthkJ8k7lkkUojDSR247MQ= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= +golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 h1:hVwzHzIUGRjiF7EcUjqNxk3NCfkPxbDKRdnNE1Rpg0U= +golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=