From 06c7df1e14c4b66082f954f936562dfd4217d273 Mon Sep 17 00:00:00 2001 From: DarthSim Date: Thu, 27 Feb 2020 22:30:31 +0600 Subject: [PATCH] Properly name go module & update docs --- CHANGELOG.md | 2 ++ docs/installation.md | 4 ++-- download.go | 2 +- go.mod | 2 +- process.go | 2 +- processing_options.go | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82a6d7a5..db5527e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ - Fix loadind BMP stored in ICO. - Fix ambiguous HEIC magic bytes (MP4 videos has been detected as HEIC). - Fix build with libvips < 8.6. +- Fix build with Go 1.14. +- Fix go module naming. Use `github.com/imgproxy/imgproxy/v2` to build imgproxy from source. ## [2.10.0] - 2020-02-13 ### Added diff --git a/docs/installation.md b/docs/installation.md index 896e6794..22faba8a 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -91,7 +91,7 @@ And finally, install imgproxy itself: ```bash GO111MODULE=on \ CGO_LDFLAGS_ALLOW="-s|-w" \ - go get -f -u github.com/imgproxy/imgproxy + go get -f -u github.com/imgproxy/imgproxy/v2 ``` ### macOS + Homebrew @@ -102,5 +102,5 @@ GO111MODULE=on \ PKG_CONFIG_PATH="$(brew --prefix libffi)/lib/pkgconfig" \ CGO_LDFLAGS_ALLOW="-s|-w" \ CGO_CFLAGS_ALLOW="-Xpreprocessor" \ - go get -f -u github.com/imgproxy/imgproxy + go get -f -u github.com/imgproxy/imgproxy/v2 ``` diff --git a/download.go b/download.go index 3d623a5e..3075e72a 100644 --- a/download.go +++ b/download.go @@ -10,7 +10,7 @@ import ( "net/http" "time" - "github.com/imgproxy/imgproxy/imagemeta" + "github.com/imgproxy/imgproxy/v2/imagemeta" ) var ( diff --git a/go.mod b/go.mod index 93bb5f61..ef91c5ed 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/imgproxy/imgproxy +module github.com/imgproxy/imgproxy/v2 go 1.11 diff --git a/process.go b/process.go index 911aa5a9..43c781ce 100644 --- a/process.go +++ b/process.go @@ -7,7 +7,7 @@ import ( "math" "runtime" - "github.com/imgproxy/imgproxy/imagemeta" + "github.com/imgproxy/imgproxy/v2/imagemeta" "golang.org/x/sync/errgroup" ) diff --git a/processing_options.go b/processing_options.go index 9c2c0863..2561055c 100644 --- a/processing_options.go +++ b/processing_options.go @@ -12,7 +12,7 @@ import ( "strings" "sync" - "github.com/imgproxy/imgproxy/structdiff" + "github.com/imgproxy/imgproxy/v2/structdiff" ) type urlOption struct {