From 20c6d2845ae9f60bfd0d78fcc8359d65de7e5711 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Mon, 8 Apr 2019 23:54:43 +0200 Subject: [PATCH] build: gopkg.in -> github.com imports Signed-off-by: Alexander Bezzubov --- .travis.yml | 20 +++++++++---------- README.md | 4 ++-- benchmark_test.go | 2 +- classifier.go | 2 +- cmd/enry/main.go | 4 ++-- common.go | 4 ++-- common_test.go | 2 +- data/alias.go | 2 +- data/commit.go | 2 +- data/content.go | 4 ++-- data/documentation.go | 2 +- data/extension.go | 2 +- data/filename.go | 2 +- data/frequencies.go | 2 +- data/heuristics.go | 2 +- data/heuristics_test.go | 2 +- data/interpreter.go | 2 +- data/mimeType.go | 2 +- data/type.go | 2 +- data/vendor.go | 2 +- enry.go | 2 +- .../code-generator/assets/content.go.tmpl | 2 +- internal/code-generator/assets/header.go.tmpl | 2 +- .../code-generator/generator/samplesfreq.go | 2 +- .../generator/test_files/alias.gold | 2 +- .../generator/test_files/commit.gold | 2 +- .../generator/test_files/content.gold | 4 ++-- .../generator/test_files/documentation.gold | 2 +- .../generator/test_files/extension.gold | 2 +- .../generator/test_files/filename.gold | 2 +- .../generator/test_files/frequencies.gold | 2 +- .../generator/test_files/interpreter.gold | 2 +- .../generator/test_files/mimeType.gold | 2 +- .../generator/test_files/type.gold | 2 +- .../generator/test_files/vendor.gold | 2 +- internal/code-generator/main.go | 2 +- internal/tokenizer/tokenize.go | 2 +- shared/enry.go | 2 +- utils.go | 2 +- 39 files changed, 53 insertions(+), 53 deletions(-) diff --git a/.travis.yml b/.travis.yml index 985a41d..38d1199 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ dist: trusty language: go -go_import_path: gopkg.in/src-d/enry.v1 +go_import_path: github.com/src-d/enry go: - '1.11.6' # specific versions until https://github.com/golang/go/issues/31293 @@ -51,10 +51,10 @@ jobs: - export CGO_ENABLED=1 # mimics exact behavior of 'go_import_path' for non-go build image - export GOPATH=${TRAVIS_HOME}/gopath - - mkdir -p ${GOPATH}/src/gopkg.in/src-d/enry.v1 - - tar -Pczf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_BUILD_DIR} . && tar -Pxzf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 - - export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 - - cd ${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 + - mkdir -p ${GOPATH}/src/github.com/src-d/enry + - tar -Pczf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_BUILD_DIR} . && tar -Pxzf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_HOME}/gopath/src/github.com/src-d/enry + - export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/github.com/src-d/enry + - cd ${TRAVIS_HOME}/gopath/src/github.com/src-d/enry install: - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)" - go version @@ -112,7 +112,7 @@ jobs: - sudo apt-get install -y --no-install-recommends clang g++ gcc gcc-multilib libc6-dev libc6-dev-i386 mingw-w64 patch xz-utils - cd ${HOME} - curl -sfSL ${OSXCROSS_URL} | tar -C ${HOME} -xzf - - - cd $GOPATH/src/gopkg.in/src-d/enry.v1 + - cd $GOPATH/src/github.com/src-d/enry script: make darwin-shared deploy: provider: releases @@ -131,10 +131,10 @@ jobs: - export CGO_ENABLED=1 # mimics exact behavior of 'go_import_path' for non-go build image - export GOPATH=${TRAVIS_HOME}/gopath - - mkdir -p ${GOPATH}/src/gopkg.in/src-d/enry.v1 - - tar -Pczf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_BUILD_DIR} . && tar -Pxzf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 - - export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 - - cd ${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 + - mkdir -p ${GOPATH}/src/github.com/src-d/enry + - tar -Pczf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_BUILD_DIR} . && tar -Pxzf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_HOME}/gopath/src/github.com/src-d/enry + - export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/github.com/src-d/enry + - cd ${TRAVIS_HOME}/gopath/src/github.com/src-d/enry install: - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)" - go version diff --git a/README.md b/README.md index e5a1a90..6da3ac7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# enry [![GoDoc](https://godoc.org/gopkg.in/src-d/enry.v1?status.svg)](https://godoc.org/gopkg.in/src-d/enry.v1) [![Build Status](https://travis-ci.com/src-d/enry.svg?branch=master)](https://travis-ci.com/src-d/enry) [![codecov](https://codecov.io/gh/src-d/enry/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/enry) +# enry [![GoDoc](https://godoc.org/github.com/src-d/enry?status.svg)](https://godoc.org/github.com/src-d/enry) [![Build Status](https://travis-ci.com/src-d/enry.svg?branch=master)](https://travis-ci.com/src-d/enry) [![codecov](https://codecov.io/gh/src-d/enry/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/enry) File programming language detector and toolbox to ignore binary or vendored files. *enry*, started as a port to _Go_ of the original [linguist](https://github.com/github/linguist) _Ruby_ library, that has an improved *2x performance*. @@ -9,7 +9,7 @@ Installation The recommended way to install enry is ``` -go get gopkg.in/src-d/enry.v1/cmd/enry +go get github.com/src-d/enry/cmd/enry ``` To build enry's CLI you must run diff --git a/benchmark_test.go b/benchmark_test.go index afded28..9567304 100644 --- a/benchmark_test.go +++ b/benchmark_test.go @@ -10,7 +10,7 @@ import ( "path/filepath" "testing" - "gopkg.in/src-d/enry.v1/data" + "github.com/src-d/enry/data" ) type sample struct { diff --git a/classifier.go b/classifier.go index fed1d0e..76e44af 100644 --- a/classifier.go +++ b/classifier.go @@ -4,7 +4,7 @@ import ( "math" "sort" - "gopkg.in/src-d/enry.v1/internal/tokenizer" + "github.com/src-d/enry/internal/tokenizer" ) // Classifier is the interface in charge to detect the possible languages of the given content based on a set of diff --git a/cmd/enry/main.go b/cmd/enry/main.go index be5b1f0..6a30f34 100644 --- a/cmd/enry/main.go +++ b/cmd/enry/main.go @@ -14,8 +14,8 @@ import ( "sort" "strings" - "gopkg.in/src-d/enry.v1" - "gopkg.in/src-d/enry.v1/data" + "github.com/src-d/enry" + "github.com/src-d/enry/data" ) var ( diff --git a/common.go b/common.go index 567dd96..83f7fc4 100644 --- a/common.go +++ b/common.go @@ -6,8 +6,8 @@ import ( "path/filepath" "strings" - "gopkg.in/src-d/enry.v1/data" - "gopkg.in/src-d/enry.v1/regex" + "github.com/src-d/enry/data" + "github.com/src-d/enry/regex" ) // OtherLanguage is used as a zero value when a function can not return a specific language. diff --git a/common_test.go b/common_test.go index 4a5f8a0..4b8fcab 100644 --- a/common_test.go +++ b/common_test.go @@ -8,7 +8,7 @@ import ( "path/filepath" "testing" - "gopkg.in/src-d/enry.v1/data" + "github.com/src-d/enry/data" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/data/alias.go b/data/alias.go index 599bd65..38237a5 100644 --- a/data/alias.go +++ b/data/alias.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/data/commit.go b/data/commit.go index 3402665..dc23b48 100644 --- a/data/commit.go +++ b/data/commit.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/data/content.go b/data/content.go index f4dea01..231ce22 100644 --- a/data/content.go +++ b/data/content.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data @@ -6,7 +6,7 @@ package data import ( "regexp" - "gopkg.in/src-d/enry.v1/data/rule" + "github.com/src-d/enry/data/rule" ) var ContentHeuristics = map[string]*Heuristics{ diff --git a/data/documentation.go b/data/documentation.go index ab88cc8..a120dd2 100644 --- a/data/documentation.go +++ b/data/documentation.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/data/extension.go b/data/extension.go index bcbb656..8509132 100644 --- a/data/extension.go +++ b/data/extension.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/data/filename.go b/data/filename.go index 34104bc..a5eb82d 100644 --- a/data/filename.go +++ b/data/filename.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/data/frequencies.go b/data/frequencies.go index 4d7d12d..6d22378 100644 --- a/data/frequencies.go +++ b/data/frequencies.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/data/heuristics.go b/data/heuristics.go index cb31649..efdc334 100644 --- a/data/heuristics.go +++ b/data/heuristics.go @@ -1,6 +1,6 @@ package data -import "gopkg.in/src-d/enry.v1/data/rule" +import "github.com/src-d/enry/data/rule" // Heuristics implements a rule-based content matching engine. diff --git a/data/heuristics_test.go b/data/heuristics_test.go index 3d21585..61bd470 100644 --- a/data/heuristics_test.go +++ b/data/heuristics_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "gopkg.in/src-d/enry.v1/data/rule" + "github.com/src-d/enry/data/rule" ) var testContentHeuristics = map[string]*Heuristics{ diff --git a/data/interpreter.go b/data/interpreter.go index 6e225a8..b72db1c 100644 --- a/data/interpreter.go +++ b/data/interpreter.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/data/mimeType.go b/data/mimeType.go index cb85a29..f9ad77a 100644 --- a/data/mimeType.go +++ b/data/mimeType.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/data/type.go b/data/type.go index 0513b26..bf87553 100644 --- a/data/type.go +++ b/data/type.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/data/vendor.go b/data/vendor.go index df98570..95f748a 100644 --- a/data/vendor.go +++ b/data/vendor.go @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/enry.go b/enry.go index d99b8eb..90aaab0 100644 --- a/enry.go +++ b/enry.go @@ -11,6 +11,6 @@ Upstream Linguist YAML files are used to generate datastructures for data package. */ -package enry // import "gopkg.in/src-d/enry.v1" +package enry // import "github.com/src-d/enry" //go:generate make code-generate diff --git a/internal/code-generator/assets/content.go.tmpl b/internal/code-generator/assets/content.go.tmpl index a44bc60..ef23424 100644 --- a/internal/code-generator/assets/content.go.tmpl +++ b/internal/code-generator/assets/content.go.tmpl @@ -3,7 +3,7 @@ package data import ( "regexp" - "gopkg.in/src-d/enry.v1/data/rule" + "github.com/src-d/enry/data/rule" ) var ContentHeuristics = map[string]*Heuristics{ diff --git a/internal/code-generator/assets/header.go.tmpl b/internal/code-generator/assets/header.go.tmpl index c574ef2..5d5427f 100644 --- a/internal/code-generator/assets/header.go.tmpl +++ b/internal/code-generator/assets/header.go.tmpl @@ -1,3 +1,3 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: {{ getCommit }} diff --git a/internal/code-generator/generator/samplesfreq.go b/internal/code-generator/generator/samplesfreq.go index fc166d9..80906c8 100644 --- a/internal/code-generator/generator/samplesfreq.go +++ b/internal/code-generator/generator/samplesfreq.go @@ -12,7 +12,7 @@ import ( "strconv" "text/template" - "gopkg.in/src-d/enry.v1/internal/tokenizer" + "github.com/src-d/enry/internal/tokenizer" ) type samplesFrequencies struct { diff --git a/internal/code-generator/generator/test_files/alias.gold b/internal/code-generator/generator/test_files/alias.gold index 599bd65..38237a5 100644 --- a/internal/code-generator/generator/test_files/alias.gold +++ b/internal/code-generator/generator/test_files/alias.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/internal/code-generator/generator/test_files/commit.gold b/internal/code-generator/generator/test_files/commit.gold index 3402665..dc23b48 100644 --- a/internal/code-generator/generator/test_files/commit.gold +++ b/internal/code-generator/generator/test_files/commit.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/internal/code-generator/generator/test_files/content.gold b/internal/code-generator/generator/test_files/content.gold index f4dea01..231ce22 100644 --- a/internal/code-generator/generator/test_files/content.gold +++ b/internal/code-generator/generator/test_files/content.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data @@ -6,7 +6,7 @@ package data import ( "regexp" - "gopkg.in/src-d/enry.v1/data/rule" + "github.com/src-d/enry/data/rule" ) var ContentHeuristics = map[string]*Heuristics{ diff --git a/internal/code-generator/generator/test_files/documentation.gold b/internal/code-generator/generator/test_files/documentation.gold index ab88cc8..a120dd2 100644 --- a/internal/code-generator/generator/test_files/documentation.gold +++ b/internal/code-generator/generator/test_files/documentation.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/internal/code-generator/generator/test_files/extension.gold b/internal/code-generator/generator/test_files/extension.gold index bcbb656..8509132 100644 --- a/internal/code-generator/generator/test_files/extension.gold +++ b/internal/code-generator/generator/test_files/extension.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/internal/code-generator/generator/test_files/filename.gold b/internal/code-generator/generator/test_files/filename.gold index 34104bc..a5eb82d 100644 --- a/internal/code-generator/generator/test_files/filename.gold +++ b/internal/code-generator/generator/test_files/filename.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/internal/code-generator/generator/test_files/frequencies.gold b/internal/code-generator/generator/test_files/frequencies.gold index 4d7d12d..6d22378 100644 --- a/internal/code-generator/generator/test_files/frequencies.gold +++ b/internal/code-generator/generator/test_files/frequencies.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/internal/code-generator/generator/test_files/interpreter.gold b/internal/code-generator/generator/test_files/interpreter.gold index 6e225a8..b72db1c 100644 --- a/internal/code-generator/generator/test_files/interpreter.gold +++ b/internal/code-generator/generator/test_files/interpreter.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/internal/code-generator/generator/test_files/mimeType.gold b/internal/code-generator/generator/test_files/mimeType.gold index cb85a29..f9ad77a 100644 --- a/internal/code-generator/generator/test_files/mimeType.gold +++ b/internal/code-generator/generator/test_files/mimeType.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/internal/code-generator/generator/test_files/type.gold b/internal/code-generator/generator/test_files/type.gold index 0513b26..bf87553 100644 --- a/internal/code-generator/generator/test_files/type.gold +++ b/internal/code-generator/generator/test_files/type.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/internal/code-generator/generator/test_files/vendor.gold b/internal/code-generator/generator/test_files/vendor.gold index df98570..95f748a 100644 --- a/internal/code-generator/generator/test_files/vendor.gold +++ b/internal/code-generator/generator/test_files/vendor.gold @@ -1,4 +1,4 @@ -// Code generated by gopkg.in/src-d/enry.v1/internal/code-generator DO NOT EDIT. +// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db package data diff --git a/internal/code-generator/main.go b/internal/code-generator/main.go index dac7efe..26c9ccc 100644 --- a/internal/code-generator/main.go +++ b/internal/code-generator/main.go @@ -4,7 +4,7 @@ import ( "io/ioutil" "log" - "gopkg.in/src-d/enry.v1/internal/code-generator/generator" + "github.com/src-d/enry/internal/code-generator/generator" ) const ( diff --git a/internal/tokenizer/tokenize.go b/internal/tokenizer/tokenize.go index 6a721c4..30239e6 100644 --- a/internal/tokenizer/tokenize.go +++ b/internal/tokenizer/tokenize.go @@ -6,7 +6,7 @@ package tokenizer import ( "bytes" - "gopkg.in/src-d/enry.v1/regex" + "github.com/src-d/enry/regex" ) const byteLimit = 100000 diff --git a/shared/enry.go b/shared/enry.go index 7efe96d..30a1e70 100644 --- a/shared/enry.go +++ b/shared/enry.go @@ -4,7 +4,7 @@ package main import "C" -import "gopkg.in/src-d/enry.v1" +import "github.com/src-d/enry" //export GetLanguage func GetLanguage(filename string, content []byte) string { diff --git a/utils.go b/utils.go index c7b2a78..f330585 100644 --- a/utils.go +++ b/utils.go @@ -5,7 +5,7 @@ import ( "path/filepath" "strings" - "gopkg.in/src-d/enry.v1/data" + "github.com/src-d/enry/data" ) const binSniffLen = 8000