diff options
author | Lauris BH <lauris@nix.lv> | 2020-04-15 20:40:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 20:40:39 +0300 |
commit | 4dc62dadce42edfaa74d2e21164afa1693db0dd8 (patch) | |
tree | fd7d0040950920b3ddcd5aad7e903f759579f138 /modules | |
parent | 7a67bcc2048d54eb5a9ae9fbc82170f74071e92c (diff) | |
download | gitea-4dc62dadce42edfaa74d2e21164afa1693db0dd8.tar.gz gitea-4dc62dadce42edfaa74d2e21164afa1693db0dd8.zip |
Migrate to go-enry new version (#10906)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/analyze/code_langauge.go | 2 | ||||
-rw-r--r-- | modules/git/repo_language_stats.go | 2 | ||||
-rw-r--r-- | modules/indexer/code/bleve.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/analyze/code_langauge.go b/modules/analyze/code_langauge.go index f7dd3e7cfc..3bd2d512f9 100644 --- a/modules/analyze/code_langauge.go +++ b/modules/analyze/code_langauge.go @@ -7,7 +7,7 @@ package analyze import ( "path/filepath" - "github.com/src-d/enry/v2" + "github.com/go-enry/go-enry/v2" ) // GetCodeLanguageWithCallback detects code language based on file name and content using callback diff --git a/modules/git/repo_language_stats.go b/modules/git/repo_language_stats.go index d18ae02d8b..ba58bcc2da 100644 --- a/modules/git/repo_language_stats.go +++ b/modules/git/repo_language_stats.go @@ -12,10 +12,10 @@ import ( "code.gitea.io/gitea/modules/analyze" + "github.com/go-enry/go-enry/v2" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/object" - "github.com/src-d/enry/v2" ) const fileSizeLimit int64 = 16 * 1024 * 1024 diff --git a/modules/indexer/code/bleve.go b/modules/indexer/code/bleve.go index 39171d17a6..576cc3e5e4 100644 --- a/modules/indexer/code/bleve.go +++ b/modules/indexer/code/bleve.go @@ -30,7 +30,7 @@ import ( "github.com/blevesearch/bleve/mapping" "github.com/blevesearch/bleve/search/query" "github.com/ethantkoenig/rupture" - "github.com/src-d/enry/v2" + "github.com/go-enry/go-enry/v2" ) const unicodeNormalizeName = "unicodeNormalize" |