mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 08:30:07 -03:00
build: gopkg.in -> github.com imports
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
parent
a4a2b1d68a
commit
20c6d2845a
20
.travis.yml
20
.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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# enry [](https://godoc.org/gopkg.in/src-d/enry.v1) [](https://travis-ci.com/src-d/enry) [](https://codecov.io/gh/src-d/enry)
|
||||
# enry [](https://godoc.org/github.com/src-d/enry) [](https://travis-ci.com/src-d/enry) [](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
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"gopkg.in/src-d/enry.v1/data"
|
||||
"github.com/src-d/enry/data"
|
||||
)
|
||||
|
||||
type sample struct {
|
||||
|
@ -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
|
||||
|
@ -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 (
|
||||
|
@ -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.
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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{
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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{
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
2
enry.go
2
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
|
||||
|
@ -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{
|
||||
|
@ -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 }}
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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{
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 (
|
||||
|
@ -6,7 +6,7 @@ package tokenizer
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"gopkg.in/src-d/enry.v1/regex"
|
||||
"github.com/src-d/enry/regex"
|
||||
)
|
||||
|
||||
const byteLimit = 100000
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user