build: gopkg.in -> github.com imports

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
Alexander Bezzubov
2019-04-08 23:54:43 +02:00
parent a4a2b1d68a
commit 20c6d2845a
39 changed files with 53 additions and 53 deletions

View File

@@ -1,7 +1,7 @@
dist: trusty dist: trusty
language: go language: go
go_import_path: gopkg.in/src-d/enry.v1 go_import_path: github.com/src-d/enry
go: go:
- '1.11.6' # specific versions until https://github.com/golang/go/issues/31293 - '1.11.6' # specific versions until https://github.com/golang/go/issues/31293
@@ -51,10 +51,10 @@ jobs:
- export CGO_ENABLED=1 - export CGO_ENABLED=1
# mimics exact behavior of 'go_import_path' for non-go build image # mimics exact behavior of 'go_import_path' for non-go build image
- export GOPATH=${TRAVIS_HOME}/gopath - export GOPATH=${TRAVIS_HOME}/gopath
- mkdir -p ${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/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/github.com/src-d/enry
- export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 - export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/github.com/src-d/enry
- cd ${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 - cd ${TRAVIS_HOME}/gopath/src/github.com/src-d/enry
install: install:
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)" - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)"
- go version - 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 - 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} - cd ${HOME}
- curl -sfSL ${OSXCROSS_URL} | tar -C ${HOME} -xzf - - 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 script: make darwin-shared
deploy: deploy:
provider: releases provider: releases
@@ -131,10 +131,10 @@ jobs:
- export CGO_ENABLED=1 - export CGO_ENABLED=1
# mimics exact behavior of 'go_import_path' for non-go build image # mimics exact behavior of 'go_import_path' for non-go build image
- export GOPATH=${TRAVIS_HOME}/gopath - export GOPATH=${TRAVIS_HOME}/gopath
- mkdir -p ${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/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/github.com/src-d/enry
- export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 - export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/github.com/src-d/enry
- cd ${TRAVIS_HOME}/gopath/src/gopkg.in/src-d/enry.v1 - cd ${TRAVIS_HOME}/gopath/src/github.com/src-d/enry
install: install:
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)" - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=$GO_VERSION_FOR_JVM bash)"
- go version - go version

View File

@@ -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*. 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 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 To build enry's CLI you must run

View File

@@ -10,7 +10,7 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"gopkg.in/src-d/enry.v1/data" "github.com/src-d/enry/data"
) )
type sample struct { type sample struct {

View File

@@ -4,7 +4,7 @@ import (
"math" "math"
"sort" "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 // Classifier is the interface in charge to detect the possible languages of the given content based on a set of

View File

@@ -14,8 +14,8 @@ import (
"sort" "sort"
"strings" "strings"
"gopkg.in/src-d/enry.v1" "github.com/src-d/enry"
"gopkg.in/src-d/enry.v1/data" "github.com/src-d/enry/data"
) )
var ( var (

View File

@@ -6,8 +6,8 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"gopkg.in/src-d/enry.v1/data" "github.com/src-d/enry/data"
"gopkg.in/src-d/enry.v1/regex" "github.com/src-d/enry/regex"
) )
// OtherLanguage is used as a zero value when a function can not return a specific language. // OtherLanguage is used as a zero value when a function can not return a specific language.

View File

@@ -8,7 +8,7 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"gopkg.in/src-d/enry.v1/data" "github.com/src-d/enry/data"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data
@@ -6,7 +6,7 @@ package data
import ( import (
"regexp" "regexp"
"gopkg.in/src-d/enry.v1/data/rule" "github.com/src-d/enry/data/rule"
) )
var ContentHeuristics = map[string]*Heuristics{ var ContentHeuristics = map[string]*Heuristics{

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -1,6 +1,6 @@
package data 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. // Heuristics implements a rule-based content matching engine.

View File

@@ -5,7 +5,7 @@ import (
"testing" "testing"
"github.com/stretchr/testify/assert" "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{ var testContentHeuristics = map[string]*Heuristics{

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -11,6 +11,6 @@
Upstream Linguist YAML files are used to generate datastructures for data Upstream Linguist YAML files are used to generate datastructures for data
package. package.
*/ */
package enry // import "gopkg.in/src-d/enry.v1" package enry // import "github.com/src-d/enry"
//go:generate make code-generate //go:generate make code-generate

View File

@@ -3,7 +3,7 @@ package data
import ( import (
"regexp" "regexp"
"gopkg.in/src-d/enry.v1/data/rule" "github.com/src-d/enry/data/rule"
) )
var ContentHeuristics = map[string]*Heuristics{ var ContentHeuristics = map[string]*Heuristics{

View File

@@ -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 }} // Extracted from github/linguist commit: {{ getCommit }}

View File

@@ -12,7 +12,7 @@ import (
"strconv" "strconv"
"text/template" "text/template"
"gopkg.in/src-d/enry.v1/internal/tokenizer" "github.com/src-d/enry/internal/tokenizer"
) )
type samplesFrequencies struct { type samplesFrequencies struct {

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data
@@ -6,7 +6,7 @@ package data
import ( import (
"regexp" "regexp"
"gopkg.in/src-d/enry.v1/data/rule" "github.com/src-d/enry/data/rule"
) )
var ContentHeuristics = map[string]*Heuristics{ var ContentHeuristics = map[string]*Heuristics{

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -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 // Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
package data package data

View File

@@ -4,7 +4,7 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"gopkg.in/src-d/enry.v1/internal/code-generator/generator" "github.com/src-d/enry/internal/code-generator/generator"
) )
const ( const (

View File

@@ -6,7 +6,7 @@ package tokenizer
import ( import (
"bytes" "bytes"
"gopkg.in/src-d/enry.v1/regex" "github.com/src-d/enry/regex"
) )
const byteLimit = 100000 const byteLimit = 100000

View File

@@ -4,7 +4,7 @@
package main package main
import "C" import "C"
import "gopkg.in/src-d/enry.v1" import "github.com/src-d/enry"
//export GetLanguage //export GetLanguage
func GetLanguage(filename string, content []byte) string { func GetLanguage(filename string, content []byte) string {

View File

@@ -5,7 +5,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"gopkg.in/src-d/enry.v1/data" "github.com/src-d/enry/data"
) )
const binSniffLen = 8000 const binSniffLen = 8000