1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-05 23:28:10 +02:00

Properly name go module & update docs

This commit is contained in:
DarthSim
2020-02-27 22:30:31 +06:00
parent 26563be393
commit 06c7df1e14
6 changed files with 8 additions and 6 deletions

View File

@@ -8,6 +8,8 @@
- Fix loadind BMP stored in ICO. - Fix loadind BMP stored in ICO.
- Fix ambiguous HEIC magic bytes (MP4 videos has been detected as HEIC). - Fix ambiguous HEIC magic bytes (MP4 videos has been detected as HEIC).
- Fix build with libvips < 8.6. - 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 ## [2.10.0] - 2020-02-13
### Added ### Added

View File

@@ -91,7 +91,7 @@ And finally, install imgproxy itself:
```bash ```bash
GO111MODULE=on \ GO111MODULE=on \
CGO_LDFLAGS_ALLOW="-s|-w" \ CGO_LDFLAGS_ALLOW="-s|-w" \
go get -f -u github.com/imgproxy/imgproxy go get -f -u github.com/imgproxy/imgproxy/v2
``` ```
### macOS + Homebrew ### macOS + Homebrew
@@ -102,5 +102,5 @@ GO111MODULE=on \
PKG_CONFIG_PATH="$(brew --prefix libffi)/lib/pkgconfig" \ PKG_CONFIG_PATH="$(brew --prefix libffi)/lib/pkgconfig" \
CGO_LDFLAGS_ALLOW="-s|-w" \ CGO_LDFLAGS_ALLOW="-s|-w" \
CGO_CFLAGS_ALLOW="-Xpreprocessor" \ CGO_CFLAGS_ALLOW="-Xpreprocessor" \
go get -f -u github.com/imgproxy/imgproxy go get -f -u github.com/imgproxy/imgproxy/v2
``` ```

View File

@@ -10,7 +10,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/imgproxy/imgproxy/imagemeta" "github.com/imgproxy/imgproxy/v2/imagemeta"
) )
var ( var (

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/imgproxy/imgproxy module github.com/imgproxy/imgproxy/v2
go 1.11 go 1.11

View File

@@ -7,7 +7,7 @@ import (
"math" "math"
"runtime" "runtime"
"github.com/imgproxy/imgproxy/imagemeta" "github.com/imgproxy/imgproxy/v2/imagemeta"
"golang.org/x/sync/errgroup" "golang.org/x/sync/errgroup"
) )

View File

@@ -12,7 +12,7 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/imgproxy/imgproxy/structdiff" "github.com/imgproxy/imgproxy/v2/structdiff"
) )
type urlOption struct { type urlOption struct {