Skip to content

Commit 5b7438d

Browse files
authored
Upgrade enry to v2.0.0 (#872)
Upgrade enry to v2.0.0
2 parents 36ccb27 + 96d8254 commit 5b7438d

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
- internal/function: gracefully handle errors in commit_stats.
1717
- Removed vendor folder.
18+
- Upgrade `enry` to version `v2.0.0`.
1819

1920
### Fixed
2021

@@ -41,7 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4142

4243
## [0.20.0] - 2019-05-30
4344
### Known Issues
44-
- After updating Vitess MySQL server, we are having some problems connecting from JDBC MariaDB drivers (https://github.com/src-d/gitbase/issues/807) (https://github.com/vitessio/vitess/issues/4603)
45+
- After updating Vitess MySQL server, we are having some problems connecting from JDBC MariaDB drivers (https://github.com/src-d/gitbase/issues/807) (https://github.com/vitessio/vitess/issues/4603)
4546

4647
### Added
4748
- function: implement is_vendor function (#830)

go.mod

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ require (
1313
github.com/miekg/dns v1.1.1 // indirect
1414
github.com/opentracing/opentracing-go v1.1.0
1515
github.com/sirupsen/logrus v1.3.0
16+
github.com/src-d/enry/v2 v2.0.0
17+
github.com/src-d/go-git v4.7.0+incompatible
1618
github.com/src-d/go-git-fixtures v3.5.1-0.20190605154830-57f3972b0248+incompatible
1719
github.com/src-d/go-mysql-server v0.4.1-0.20190607090451-cf9bb2a992da
1820
github.com/stretchr/testify v1.3.0
@@ -21,7 +23,6 @@ require (
2123
github.com/uber/jaeger-lib v2.0.0+incompatible // indirect
2224
go.uber.org/atomic v1.4.0 // indirect
2325
google.golang.org/grpc v1.20.1
24-
gopkg.in/src-d/enry.v1 v1.7.2
2526
gopkg.in/src-d/go-billy-siva.v4 v4.2.2
2627
gopkg.in/src-d/go-billy.v4 v4.3.0
2728
gopkg.in/src-d/go-errors.v1 v1.0.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ github.com/src-d/enry/v2 v2.0.0 h1:2ADqfDHhroFwL1RGhMS9e15NkEwln8P4AABwVvIdAlo=
196196
github.com/src-d/enry/v2 v2.0.0/go.mod h1:qQeCMRwzMF3ckeGr+h0tJLdxXnq+NVZsIDMELj0t028=
197197
github.com/src-d/gcfg v1.4.0 h1:xXbNR5AlLSA315x2UO+fTSSAXCDf+Ar38/6oyGbDKQ4=
198198
github.com/src-d/gcfg v1.4.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI=
199+
github.com/src-d/go-git v4.7.0+incompatible h1:IYSSnbAHeKmsfbQFi9ozbid+KNh0bKjlorMfQehQbcE=
200+
github.com/src-d/go-git v4.7.0+incompatible/go.mod h1:1bQciz+hn0jzPQNsYj0hDFZHLJBdV7gXE2mWhC7EkFk=
199201
github.com/src-d/go-git-fixtures v3.5.1-0.20190605154830-57f3972b0248+incompatible h1:A5bKevhs9C//Nh8QV0J+1KphEaIa25cDe1DTs/yPxDI=
200202
github.com/src-d/go-git-fixtures v3.5.1-0.20190605154830-57f3972b0248+incompatible/go.mod h1:XcIQp7L+k0pgfTqfbaTKj3kxlBv8kYOKZ/tKNXbZFLg=
201203
github.com/src-d/go-mysql-server v0.4.1-0.20190607090451-cf9bb2a992da h1:k98uJPIP1kysgYtidyDRgYXIXKj0HZ4d7jf9d+ztSmg=
@@ -304,8 +306,6 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8
304306
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
305307
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
306308
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2/go.mod h1:Xk6kEKp8OKb+X14hQBKWaSkCsqBpgog8nAV2xsGOxlo=
307-
gopkg.in/src-d/enry.v1 v1.7.2 h1:f0eHdxIHq2Ox30Vfiqqpmi4ZcXzKKiYAD6PA4got+jA=
308-
gopkg.in/src-d/enry.v1 v1.7.2/go.mod h1:lDDelHa5/fOO+o8klI8JOOoMszXxhqCYOgqFS2mnxQA=
309309
gopkg.in/src-d/go-billy-siva.v4 v4.2.2 h1:HvklDMblrg/Zknu4tAFJayg34QUOvuojXjMQGqA2FtM=
310310
gopkg.in/src-d/go-billy-siva.v4 v4.2.2/go.mod h1:4wKeCzOCSsdyFeM5+58M6ObU6FM+lZT12p7zm7A+9n0=
311311
gopkg.in/src-d/go-billy.v4 v4.2.1/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk=

internal/commitstats/file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"io"
99

1010
"github.com/hhatto/gocloc"
11+
"github.com/src-d/enry/v2"
1112
"github.com/src-d/go-git/utils/binary"
12-
"gopkg.in/src-d/enry.v1"
1313
"gopkg.in/src-d/go-git.v4"
1414
"gopkg.in/src-d/go-git.v4/plumbing/object"
1515
"gopkg.in/src-d/go-git.v4/utils/ioutil"

internal/function/is_vendor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package function
33
import (
44
"fmt"
55

6-
enry "gopkg.in/src-d/enry.v1"
6+
enry "github.com/src-d/enry/v2"
77
"github.com/src-d/go-mysql-server/sql"
88
"github.com/src-d/go-mysql-server/sql/expression"
99
)

internal/function/language.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strconv"
99

1010
lru "github.com/hashicorp/golang-lru"
11-
enry "gopkg.in/src-d/enry.v1"
11+
enry "github.com/src-d/enry/v2"
1212
"github.com/src-d/go-mysql-server/sql"
1313
)
1414

internal/function/loc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77

88
"github.com/hhatto/gocloc"
9-
"gopkg.in/src-d/enry.v1"
9+
"github.com/src-d/enry/v2"
1010
"github.com/src-d/go-mysql-server/sql"
1111
)
1212

0 commit comments

Comments
 (0)