diff --git a/.appveyor.yml b/.appveyor.yml index 1b4985aa..9894d15a 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -2,7 +2,7 @@ version: "{build}" platform: x64 image: Visual Studio 2017 -clone_folder: c:\gopath\src\gopkg.in\src-d\hercules.v8 +clone_folder: c:\gopath\src\gopkg.in\src-d\hercules.v9 environment: GOPATH: c:\gopath @@ -16,14 +16,14 @@ build_script: - go version - set PATH=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;C:\msys64\usr\bin;C:\msys64\mingw64\bin;%GOPATH%\bin;%PATH% - set PATH=%PATH:C:\Program Files\Git\usr\bin;=% - - cd %GOPATH%\src\gopkg.in\src-d\hercules.v8 + - cd %GOPATH%\src\gopkg.in\src-d\hercules.v9 - go get -v github.com/golang/dep/cmd/dep - make - - 7z a c:\gopath\src\gopkg.in\src-d\hercules.v8\hercules.win64.zip %GOPATH%\bin\hercules.exe + - 7z a c:\gopath\src\gopkg.in\src-d\hercules.v9\hercules.win64.zip %GOPATH%\bin\hercules.exe test_script: - - go get -v -t -d gopkg.in/src-d/hercules.v8/... - - go test -v -tags disable_babelfish gopkg.in/src-d/hercules.v8/... + - go get -v -t -d gopkg.in/src-d/hercules.v9/... + - go test -v -tags disable_babelfish gopkg.in/src-d/hercules.v9/... artifacts: - name: hercules.win64.zip diff --git a/.travis.yml b/.travis.yml index b860e3d5..91cdb6b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ git: depth: 9999999 language: go -go_import_path: gopkg.in/src-d/hercules.v8 +go_import_path: gopkg.in/src-d/hercules.v9 go: - 1.10.x - 1.11.x @@ -19,10 +19,10 @@ cache: - $HOME/gopath/src before_cache: - cd $HOME/gopath - - mv $HOME/gopath/src/gopkg.in/src-d/hercules.v8/vendor $HOME/gopath/src/gopkg.in/src-d/.vendor - - rm -rf $HOME/gopath/src/gopkg.in/src-d/hercules.v8 - - mkdir $HOME/gopath/src/gopkg.in/src-d/hercules.v8 - - mv $HOME/gopath/src/gopkg.in/src-d/.vendor $HOME/gopath/src/gopkg.in/src-d/hercules.v8/vendor + - mv $HOME/gopath/src/gopkg.in/src-d/hercules.v9/vendor $HOME/gopath/src/gopkg.in/src-d/.vendor + - rm -rf $HOME/gopath/src/gopkg.in/src-d/hercules.v9 + - mkdir $HOME/gopath/src/gopkg.in/src-d/hercules.v9 + - mv $HOME/gopath/src/gopkg.in/src-d/.vendor $HOME/gopath/src/gopkg.in/src-d/hercules.v9/vendor matrix: fast_finish: true @@ -64,7 +64,7 @@ script: - go vet -tags tensorflow ./... - golint -set_exit_status $(go list ./... | grep -v /vendor/) - flake8 - - go test -coverpkg=all -v -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v8/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt + - go test -coverpkg=all -v -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v9/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt - $GOPATH/bin/hercules version - $GOPATH/bin/hercules --burndown --couples --devs --quiet --pb https://github.com/src-d/hercules > 1.pb - cp 1.pb 2.pb @@ -90,7 +90,7 @@ jobs: os: osx osx_image: xcode9.3 go: 1.11.x - go_import_path: gopkg.in/src-d/hercules.v8 + go_import_path: gopkg.in/src-d/hercules.v9 before_install: - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-osx-x86_64.zip - unzip -d ~/.local protoc.zip && rm protoc.zip @@ -112,7 +112,7 @@ jobs: - stage: deploy os: linux go: 1.11.x - go_import_path: gopkg.in/src-d/hercules.v8 + go_import_path: gopkg.in/src-d/hercules.v9 before_install: - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip - unzip -d ~/.local protoc.zip && rm protoc.zip diff --git a/Dockerfile b/Dockerfile index 4c98eb4a..efe88c78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:18.04 ENV GOPATH /root ENV PROTOBUF_VERSION 3.5.1 -COPY . /root/src/gopkg.in/src-d/hercules.v8 +COPY . /root/src/gopkg.in/src-d/hercules.v9 RUN apt-get update && \ apt-get install -y --no-install-suggests --no-install-recommends software-properties-common && \ add-apt-repository -y ppa:gophers/archive && \ @@ -14,13 +14,13 @@ RUN apt-get update && \ locale-gen en_US.UTF-8 && \ export PATH=/usr/lib/go-1.10/bin:/root/bin:$PATH && \ go get -v github.com/golang/dep/cmd/dep && \ - cd /root/src/gopkg.in/src-d/hercules.v8 && \ + cd /root/src/gopkg.in/src-d/hercules.v9 && \ export CGO_CXXFLAGS=-std=c++14 && \ curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$(go env GOOS)-x86_64-1.7.0.tar.gz" | tar -C /usr/local -xz && \ make && \ rm /usr/local/bin/protoc && rm /usr/local/readme.txt && rm -rf /usr/local/include/google && \ cp /root/bin/hercules /usr/local/bin && \ - cp -r /root/src/gopkg.in/src-d/hercules.v8/*.py /root/src/gopkg.in/src-d/hercules.v8/internal /usr/local/bin && \ + cp -r /root/src/gopkg.in/src-d/hercules.v9/*.py /root/src/gopkg.in/src-d/hercules.v9/internal /usr/local/bin && \ sed -i 's/parser.add_argument("--backend",/parser.add_argument("--backend", default="Agg",/' /usr/local/bin/labours.py && \ echo '#!/bin/bash\n\ \n\ @@ -30,7 +30,7 @@ echo\n\' > /browser && \ chmod +x /browser && \ curl https://bootstrap.pypa.io/get-pip.py | python3 - pip==18.1 && \ pip3 install --no-cache-dir --no-build-isolation cython && \ - pip3 install --no-cache-dir --no-build-isolation -r /root/src/gopkg.in/src-d/hercules.v8/requirements.txt https://github.com/mind/wheels/releases/download/tf1.7-cpu/tensorflow-1.7.0-cp36-cp36m-linux_x86_64.whl && \ + pip3 install --no-cache-dir --no-build-isolation -r /root/src/gopkg.in/src-d/hercules.v9/requirements.txt https://github.com/mind/wheels/releases/download/tf1.7-cpu/tensorflow-1.7.0-cp36-cp36m-linux_x86_64.whl && \ rm -rf /root/* && \ apt-get remove -y software-properties-common golang-1.10-go python3-dev libyaml-dev libxml2-dev curl git make unzip g++ && \ apt-get remove -y *-doc *-man && \ diff --git a/Makefile b/Makefile index bb952d5b..b5830703 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ TAGS ?= all: ${GOPATH}/bin/hercules${EXE} test: all - go test gopkg.in/src-d/hercules.v8 + go test gopkg.in/src-d/hercules.v9 ${GOPATH}/bin/protoc-gen-gogo${EXE}: go get -v github.com/gogo/protobuf/protoc-gen-gogo @@ -34,4 +34,4 @@ vendor: dep ensure -v ${GOPATH}/bin/hercules${EXE}: vendor *.go */*.go */*/*.go */*/*/*.go internal/pb/pb.pb.go internal/pb/pb_pb2.py cmd/hercules/plugin_template_source.go - go get -tags "$(TAGS)" -ldflags "-X gopkg.in/src-d/hercules.v8.BinaryGitHash=$(shell git rev-parse HEAD)" gopkg.in/src-d/hercules.v8/cmd/hercules + go get -tags "$(TAGS)" -ldflags "-X gopkg.in/src-d/hercules.v9.BinaryGitHash=$(shell git rev-parse HEAD)" gopkg.in/src-d/hercules.v9/cmd/hercules diff --git a/README.md b/README.md index 03846df1..7b2eabbb 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

Hercules

Fast, insightful and highly customizable Git history analysis.

- GoDoc + GoDoc Travis build Status AppVeyor build status Docker build status @@ -33,7 +33,7 @@ The second is the Python script which draws some predefined plots. These two too a pipe. It is possible to write custom analyses using the plugin system. It is also possible to merge several analysis results together. The commit history includes branches, merges, etc. -Blog posts: [1](https://blog.sourced.tech/post/hercules.v4), [2](https://blog.sourced.tech/post/hercules). +Blog posts: [1](https://blog.sourced.tech/post/hercules.v9), [2](https://blog.sourced.tech/post/hercules). [Presentation](http://vmarkovtsev.github.io/gowayfest-2018-minsk/). ![Hercules DAG of Burndown analysis](doc/dag.png) @@ -59,8 +59,8 @@ Numpy and Scipy can be installed on Windows using http://www.lfd.uci.edu/~gohlke You are going to need Go (>= v1.10), [`protoc`](https://github.com/google/protobuf/releases), and [`dep`](https://github.com/golang/dep). ``` -go get -d gopkg.in/src-d/hercules.v7/cmd/hercules -cd $GOPATH/src/gopkg.in/src-d/hercules.v7 +go get -d gopkg.in/src-d/hercules.v9/cmd/hercules +cd $GOPATH/src/gopkg.in/src-d/hercules.v9 make ``` diff --git a/cmd/hercules/combine.go b/cmd/hercules/combine.go index 1e7ebba7..3b76d88a 100644 --- a/cmd/hercules/combine.go +++ b/cmd/hercules/combine.go @@ -14,8 +14,8 @@ import ( "github.com/gogo/protobuf/proto" "github.com/spf13/cobra" progress "gopkg.in/cheggaaa/pb.v1" - "gopkg.in/src-d/hercules.v8" - "gopkg.in/src-d/hercules.v8/internal/pb" + "gopkg.in/src-d/hercules.v9" + "gopkg.in/src-d/hercules.v9/internal/pb" ) // combineCmd represents the combine command diff --git a/cmd/hercules/plugin.template b/cmd/hercules/plugin.template index 9cc9152e..c630a752 100644 --- a/cmd/hercules/plugin.template +++ b/cmd/hercules/plugin.template @@ -24,7 +24,7 @@ import ( "github.com/gogo/protobuf/proto" "gopkg.in/src-d/go-git.v4" - "gopkg.in/src-d/hercules.v8" + "gopkg.in/src-d/hercules.v9" ) // {{.name}} contains the intermediate state which is mutated by Consume(). It should implement diff --git a/cmd/hercules/root.go b/cmd/hercules/root.go index 39b0ed12..f0f4ccfb 100644 --- a/cmd/hercules/root.go +++ b/cmd/hercules/root.go @@ -34,8 +34,8 @@ import ( "gopkg.in/src-d/go-git.v4/storage" "gopkg.in/src-d/go-git.v4/storage/filesystem" "gopkg.in/src-d/go-git.v4/storage/memory" - "gopkg.in/src-d/hercules.v8" - "gopkg.in/src-d/hercules.v8/internal/pb" + "gopkg.in/src-d/hercules.v9" + "gopkg.in/src-d/hercules.v9/internal/pb" ) // oneLineWriter splits the output data by lines and outputs one on top of another using '\r'. diff --git a/contrib/_plugin_example/churn_analysis.go b/contrib/_plugin_example/churn_analysis.go index 709b5da3..b1a8bf06 100644 --- a/contrib/_plugin_example/churn_analysis.go +++ b/contrib/_plugin_example/churn_analysis.go @@ -13,7 +13,7 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/utils/merkletrie" - "gopkg.in/src-d/hercules.v8" + "gopkg.in/src-d/hercules.v9" ) // ChurnAnalysis contains the intermediate state which is mutated by Consume(). It should implement diff --git a/core.go b/core.go index 7ccefe30..8674579c 100644 --- a/core.go +++ b/core.go @@ -4,12 +4,12 @@ import ( "github.com/spf13/pflag" "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/plumbing/identity" - "gopkg.in/src-d/hercules.v8/internal/plumbing/uast" - "gopkg.in/src-d/hercules.v8/internal/yaml" - "gopkg.in/src-d/hercules.v8/leaves" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/plumbing/identity" + "gopkg.in/src-d/hercules.v9/internal/plumbing/uast" + "gopkg.in/src-d/hercules.v9/internal/yaml" + "gopkg.in/src-d/hercules.v9/leaves" ) // ConfigurationOptionType represents the possible types of a ConfigurationOption's value. diff --git a/internal/burndown/file.go b/internal/burndown/file.go index d627ac96..9ee39da6 100644 --- a/internal/burndown/file.go +++ b/internal/burndown/file.go @@ -5,8 +5,8 @@ import ( "log" "math" - "gopkg.in/src-d/hercules.v8/internal" - "gopkg.in/src-d/hercules.v8/internal/rbtree" + "gopkg.in/src-d/hercules.v9/internal" + "gopkg.in/src-d/hercules.v9/internal/rbtree" ) // Updater is the function which is called back on File.Update(). diff --git a/internal/burndown/file_test.go b/internal/burndown/file_test.go index 4afe4c33..3a8807bd 100644 --- a/internal/burndown/file_test.go +++ b/internal/burndown/file_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "gopkg.in/src-d/hercules.v8/internal/rbtree" + "gopkg.in/src-d/hercules.v9/internal/rbtree" ) func updateStatusFile(status map[int]int64, _, previousTime, delta int) { diff --git a/internal/core/forks.go b/internal/core/forks.go index 947b2d68..441ed885 100644 --- a/internal/core/forks.go +++ b/internal/core/forks.go @@ -9,7 +9,7 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/toposort" + "gopkg.in/src-d/hercules.v9/internal/toposort" ) // OneShotMergeProcessor provides the convenience method to consume merges only once. diff --git a/internal/core/forks_test.go b/internal/core/forks_test.go index bfee6889..816fc7bd 100644 --- a/internal/core/forks_test.go +++ b/internal/core/forks_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/test" ) type testForkPipelineItem struct { diff --git a/internal/core/pipeline.go b/internal/core/pipeline.go index 4afd7a37..293a7554 100644 --- a/internal/core/pipeline.go +++ b/internal/core/pipeline.go @@ -18,8 +18,8 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/plumbing/storer" - "gopkg.in/src-d/hercules.v8/internal/pb" - "gopkg.in/src-d/hercules.v8/internal/toposort" + "gopkg.in/src-d/hercules.v9/internal/pb" + "gopkg.in/src-d/hercules.v9/internal/toposort" ) // ConfigurationOptionType represents the possible types of a ConfigurationOption's value. diff --git a/internal/core/pipeline_test.go b/internal/core/pipeline_test.go index 21b590a6..213a9e08 100644 --- a/internal/core/pipeline_test.go +++ b/internal/core/pipeline_test.go @@ -14,8 +14,8 @@ import ( "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/pb" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/pb" + "gopkg.in/src-d/hercules.v9/internal/test" ) type testPipelineItem struct { diff --git a/internal/core/registry_test.go b/internal/core/registry_test.go index 94b37bdd..ace63685 100644 --- a/internal/core/registry_test.go +++ b/internal/core/registry_test.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/pflag" "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/test" ) func getRegistry() *PipelineItemRegistry { diff --git a/internal/global_test.go b/internal/global_test.go index 43d38223..d467e5cd 100644 --- a/internal/global_test.go +++ b/internal/global_test.go @@ -7,10 +7,10 @@ import ( "testing" "github.com/stretchr/testify/assert" - "gopkg.in/src-d/hercules.v8/internal/core" - uast_items "gopkg.in/src-d/hercules.v8/internal/plumbing/uast" - "gopkg.in/src-d/hercules.v8/internal/test" - "gopkg.in/src-d/hercules.v8/leaves" + "gopkg.in/src-d/hercules.v9/internal/core" + uast_items "gopkg.in/src-d/hercules.v9/internal/plumbing/uast" + "gopkg.in/src-d/hercules.v9/internal/test" + "gopkg.in/src-d/hercules.v9/leaves" ) func TestPipelineSerialize(t *testing.T) { diff --git a/internal/plumbing/blob_cache.go b/internal/plumbing/blob_cache.go index 672cf945..b81ed850 100644 --- a/internal/plumbing/blob_cache.go +++ b/internal/plumbing/blob_cache.go @@ -13,8 +13,8 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/utils/merkletrie" - "gopkg.in/src-d/hercules.v8/internal" - "gopkg.in/src-d/hercules.v8/internal/core" + "gopkg.in/src-d/hercules.v9/internal" + "gopkg.in/src-d/hercules.v9/internal/core" ) // ErrorBinary is raised in CachedBlob.CountLines() if the file is binary. diff --git a/internal/plumbing/blob_cache_test.go b/internal/plumbing/blob_cache_test.go index 9018c193..fba11801 100644 --- a/internal/plumbing/blob_cache_test.go +++ b/internal/plumbing/blob_cache_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/test" ) func fixtureBlobCache() *BlobCache { diff --git a/internal/plumbing/day.go b/internal/plumbing/day.go index 169c04a6..0f59d5f1 100644 --- a/internal/plumbing/day.go +++ b/internal/plumbing/day.go @@ -7,7 +7,7 @@ import ( "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" + "gopkg.in/src-d/hercules.v9/internal/core" ) // DaysSinceStart provides the relative date information for every commit. diff --git a/internal/plumbing/day_test.go b/internal/plumbing/day_test.go index 3b19100d..52730381 100644 --- a/internal/plumbing/day_test.go +++ b/internal/plumbing/day_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4/plumbing" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/test" ) func fixtureDaysSinceStart() *DaysSinceStart { diff --git a/internal/plumbing/diff.go b/internal/plumbing/diff.go index 8f42356e..16ac8afe 100644 --- a/internal/plumbing/diff.go +++ b/internal/plumbing/diff.go @@ -8,7 +8,7 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/utils/merkletrie" - "gopkg.in/src-d/hercules.v8/internal/core" + "gopkg.in/src-d/hercules.v9/internal/core" ) // FileDiff calculates the difference of files which were modified. diff --git a/internal/plumbing/diff_test.go b/internal/plumbing/diff_test.go index 3ad53d22..c9c8b9ee 100644 --- a/internal/plumbing/diff_test.go +++ b/internal/plumbing/diff_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8" - "gopkg.in/src-d/hercules.v8/internal" - "gopkg.in/src-d/hercules.v8/internal/core" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/test" - "gopkg.in/src-d/hercules.v8/internal/test/fixtures" + "gopkg.in/src-d/hercules.v9" + "gopkg.in/src-d/hercules.v9/internal" + "gopkg.in/src-d/hercules.v9/internal/core" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/test" + "gopkg.in/src-d/hercules.v9/internal/test/fixtures" ) func TestFileDiffMeta(t *testing.T) { diff --git a/internal/plumbing/identity/identity.go b/internal/plumbing/identity/identity.go index a3d9eab0..27a23ec5 100644 --- a/internal/plumbing/identity/identity.go +++ b/internal/plumbing/identity/identity.go @@ -9,7 +9,7 @@ import ( "github.com/pkg/errors" "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" + "gopkg.in/src-d/hercules.v9/internal/core" ) // Detector determines the author of a commit. Same person can commit under different diff --git a/internal/plumbing/identity/identity_test.go b/internal/plumbing/identity/identity_test.go index 146690e7..e2adce4c 100644 --- a/internal/plumbing/identity/identity_test.go +++ b/internal/plumbing/identity/identity_test.go @@ -14,8 +14,8 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/plumbing/storer" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/test" ) func fixtureIdentityDetector() *Detector { diff --git a/internal/plumbing/languages.go b/internal/plumbing/languages.go index d8f92768..7e447d6d 100644 --- a/internal/plumbing/languages.go +++ b/internal/plumbing/languages.go @@ -9,7 +9,7 @@ import ( "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" + "gopkg.in/src-d/hercules.v9/internal/core" ) // LanguagesDetection run programming language detection over the changed files. diff --git a/internal/plumbing/languages_test.go b/internal/plumbing/languages_test.go index 4490e1ef..a7add465 100644 --- a/internal/plumbing/languages_test.go +++ b/internal/plumbing/languages_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/test" ) func TestLanguagesDetectionMeta(t *testing.T) { diff --git a/internal/plumbing/line_stats.go b/internal/plumbing/line_stats.go index 3f3e8cce..67edacdf 100644 --- a/internal/plumbing/line_stats.go +++ b/internal/plumbing/line_stats.go @@ -8,7 +8,7 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/utils/merkletrie" - "gopkg.in/src-d/hercules.v8/internal/core" + "gopkg.in/src-d/hercules.v9/internal/core" ) // LinesStatsCalculator measures line statistics for each text file in the commit. diff --git a/internal/plumbing/line_stats_test.go b/internal/plumbing/line_stats_test.go index 5828bcec..90383100 100644 --- a/internal/plumbing/line_stats_test.go +++ b/internal/plumbing/line_stats_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/plumbing/identity" - "gopkg.in/src-d/hercules.v8/internal/test" - "gopkg.in/src-d/hercules.v8/internal/test/fixtures" + "gopkg.in/src-d/hercules.v9/internal/core" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/plumbing/identity" + "gopkg.in/src-d/hercules.v9/internal/test" + "gopkg.in/src-d/hercules.v9/internal/test/fixtures" ) func TestLinesStatsMeta(t *testing.T) { diff --git a/internal/plumbing/renames.go b/internal/plumbing/renames.go index b580f2ed..11cfbd7f 100644 --- a/internal/plumbing/renames.go +++ b/internal/plumbing/renames.go @@ -13,8 +13,8 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/utils/merkletrie" - "gopkg.in/src-d/hercules.v8/internal" - "gopkg.in/src-d/hercules.v8/internal/core" + "gopkg.in/src-d/hercules.v9/internal" + "gopkg.in/src-d/hercules.v9/internal/core" ) // RenameAnalysis improves TreeDiff's results by searching for changed blobs under different diff --git a/internal/plumbing/renames_test.go b/internal/plumbing/renames_test.go index 4e8c93cd..8cfc3b27 100644 --- a/internal/plumbing/renames_test.go +++ b/internal/plumbing/renames_test.go @@ -11,8 +11,8 @@ import ( "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/test" ) func fixtureRenameAnalysis() *RenameAnalysis { diff --git a/internal/plumbing/tree_diff.go b/internal/plumbing/tree_diff.go index 8a4c9bb7..fb58cee0 100644 --- a/internal/plumbing/tree_diff.go +++ b/internal/plumbing/tree_diff.go @@ -13,7 +13,7 @@ import ( "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" + "gopkg.in/src-d/hercules.v9/internal/core" ) // TreeDiff generates the list of changes for a commit. A change can be either one or two blobs diff --git a/internal/plumbing/tree_diff_test.go b/internal/plumbing/tree_diff_test.go index 5743a603..a4efbb66 100644 --- a/internal/plumbing/tree_diff_test.go +++ b/internal/plumbing/tree_diff_test.go @@ -7,8 +7,8 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/utils/merkletrie" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/test" ) func fixtureTreeDiff() *TreeDiff { diff --git a/internal/plumbing/uast/changes_xpather_test.go b/internal/plumbing/uast/changes_xpather_test.go index c72329ce..5411b7fc 100644 --- a/internal/plumbing/uast/changes_xpather_test.go +++ b/internal/plumbing/uast/changes_xpather_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" "gopkg.in/bblfsh/client-go.v3" - uast_test "gopkg.in/src-d/hercules.v8/internal/plumbing/uast/test" - "gopkg.in/src-d/hercules.v8/internal/test" + uast_test "gopkg.in/src-d/hercules.v9/internal/plumbing/uast/test" + "gopkg.in/src-d/hercules.v9/internal/test" ) func TestChangesXPatherExtractChanged(t *testing.T) { diff --git a/internal/plumbing/uast/diff_refiner.go b/internal/plumbing/uast/diff_refiner.go index 18cb934d..5c2c75d3 100644 --- a/internal/plumbing/uast/diff_refiner.go +++ b/internal/plumbing/uast/diff_refiner.go @@ -8,8 +8,8 @@ import ( "gopkg.in/bblfsh/sdk.v2/uast" "gopkg.in/bblfsh/sdk.v2/uast/nodes" "gopkg.in/src-d/go-git.v4" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/plumbing" ) // FileDiffRefiner uses UASTs to improve the human interpretability of diffs. diff --git a/internal/plumbing/uast/diff_refiner_test.go b/internal/plumbing/uast/diff_refiner_test.go index baad503d..d39ac233 100644 --- a/internal/plumbing/uast/diff_refiner_test.go +++ b/internal/plumbing/uast/diff_refiner_test.go @@ -12,9 +12,9 @@ import ( "gopkg.in/bblfsh/sdk.v2/uast/nodes" "gopkg.in/bblfsh/sdk.v2/uast/nodes/nodesproto" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/test" ) func fixtureFileDiffRefiner() *FileDiffRefiner { diff --git a/internal/plumbing/uast/test/utils.go b/internal/plumbing/uast/test/utils.go index dbc06e0b..43b286fa 100644 --- a/internal/plumbing/uast/test/utils.go +++ b/internal/plumbing/uast/test/utils.go @@ -6,7 +6,7 @@ import ( "gopkg.in/bblfsh/client-go.v3" "gopkg.in/bblfsh/sdk.v2/uast/nodes" "gopkg.in/src-d/go-git.v4/plumbing" - core_test "gopkg.in/src-d/hercules.v8/internal/test" + core_test "gopkg.in/src-d/hercules.v9/internal/test" ) // ParseBlobFromTestRepo extracts the UAST from the file by it's hash and name. diff --git a/internal/plumbing/uast/uast.go b/internal/plumbing/uast/uast.go index 20fb5763..3e578573 100644 --- a/internal/plumbing/uast/uast.go +++ b/internal/plumbing/uast/uast.go @@ -23,9 +23,9 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/utils/merkletrie" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" ) // Extractor retrieves UASTs from Babelfish server which correspond to changed files in a commit. diff --git a/internal/plumbing/uast/uast_test.go b/internal/plumbing/uast/uast_test.go index a4b485ab..967b8939 100644 --- a/internal/plumbing/uast/uast_test.go +++ b/internal/plumbing/uast/uast_test.go @@ -16,10 +16,10 @@ import ( "gopkg.in/bblfsh/sdk.v2/uast/nodes" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/test" ) func fixtureUASTExtractor() *Extractor { diff --git a/internal/test/fixtures/fixtures.go b/internal/test/fixtures/fixtures.go index 8fd46f4c..2bf7944d 100644 --- a/internal/test/fixtures/fixtures.go +++ b/internal/test/fixtures/fixtures.go @@ -1,8 +1,8 @@ package fixtures import ( - "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/test" ) // FileDiff initializes a new plumbing.FileDiff item for testing. diff --git a/leaves/burndown.go b/leaves/burndown.go index f05d7dc3..e64b860a 100644 --- a/leaves/burndown.go +++ b/leaves/burndown.go @@ -18,13 +18,13 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/utils/merkletrie" - "gopkg.in/src-d/hercules.v8/internal/burndown" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/plumbing/identity" - "gopkg.in/src-d/hercules.v8/internal/rbtree" - "gopkg.in/src-d/hercules.v8/internal/yaml" + "gopkg.in/src-d/hercules.v9/internal/burndown" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/plumbing/identity" + "gopkg.in/src-d/hercules.v9/internal/rbtree" + "gopkg.in/src-d/hercules.v9/internal/yaml" ) // BurndownAnalysis allows to gather the line burndown statistics for a Git repository. diff --git a/leaves/burndown_test.go b/leaves/burndown_test.go index 5a13b078..d0c4d391 100644 --- a/leaves/burndown_test.go +++ b/leaves/burndown_test.go @@ -8,18 +8,18 @@ import ( "path" "testing" - "gopkg.in/src-d/hercules.v8/internal/burndown" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/test/fixtures" + "gopkg.in/src-d/hercules.v9/internal/burndown" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/test/fixtures" "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/plumbing/identity" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/plumbing/identity" + "gopkg.in/src-d/hercules.v9/internal/test" ) func AddHash(t *testing.T, cache map[plumbing.Hash]*items.CachedBlob, hash string) { diff --git a/leaves/comment_sentiment.go b/leaves/comment_sentiment.go index 42505c79..053717dc 100644 --- a/leaves/comment_sentiment.go +++ b/leaves/comment_sentiment.go @@ -17,10 +17,10 @@ import ( progress "gopkg.in/cheggaaa/pb.v1" "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - uast_items "gopkg.in/src-d/hercules.v8/internal/plumbing/uast" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + uast_items "gopkg.in/src-d/hercules.v9/internal/plumbing/uast" "gopkg.in/vmarkovtsev/BiDiSentiment.v1" ) diff --git a/leaves/comment_sentiment_test.go b/leaves/comment_sentiment_test.go index c9b46a9c..27fe9ced 100644 --- a/leaves/comment_sentiment_test.go +++ b/leaves/comment_sentiment_test.go @@ -16,12 +16,12 @@ import ( "gopkg.in/bblfsh/sdk.v2/uast/nodes" "gopkg.in/bblfsh/sdk.v2/uast/query" "gopkg.in/src-d/go-git.v4/plumbing" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - uast_items "gopkg.in/src-d/hercules.v8/internal/plumbing/uast" - uast_test "gopkg.in/src-d/hercules.v8/internal/plumbing/uast/test" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + uast_items "gopkg.in/src-d/hercules.v9/internal/plumbing/uast" + uast_test "gopkg.in/src-d/hercules.v9/internal/plumbing/uast/test" + "gopkg.in/src-d/hercules.v9/internal/test" ) func fixtureCommentSentiment() *CommentSentimentAnalysis { diff --git a/leaves/couples.go b/leaves/couples.go index 41d217e5..bfe68270 100644 --- a/leaves/couples.go +++ b/leaves/couples.go @@ -10,11 +10,11 @@ import ( "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/utils/merkletrie" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/plumbing/identity" - "gopkg.in/src-d/hercules.v8/internal/yaml" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/plumbing/identity" + "gopkg.in/src-d/hercules.v9/internal/yaml" ) // CouplesAnalysis calculates the number of common commits for files and authors. diff --git a/leaves/couples_test.go b/leaves/couples_test.go index 40079fea..08f86c20 100644 --- a/leaves/couples_test.go +++ b/leaves/couples_test.go @@ -11,11 +11,11 @@ import ( "github.com/stretchr/testify/assert" gitplumbing "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/plumbing/identity" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/plumbing/identity" + "gopkg.in/src-d/hercules.v9/internal/test" ) func fixtureCouples() *CouplesAnalysis { diff --git a/leaves/devs.go b/leaves/devs.go index 72ef29a7..531fab6a 100644 --- a/leaves/devs.go +++ b/leaves/devs.go @@ -10,11 +10,11 @@ import ( "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/plumbing/identity" - "gopkg.in/src-d/hercules.v8/internal/yaml" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/plumbing/identity" + "gopkg.in/src-d/hercules.v9/internal/yaml" ) // DevsAnalysis calculates the number of commits through time per developer. diff --git a/leaves/devs_test.go b/leaves/devs_test.go index 7f10607f..e45f4e5f 100644 --- a/leaves/devs_test.go +++ b/leaves/devs_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/plumbing/identity" - "gopkg.in/src-d/hercules.v8/internal/test" - "gopkg.in/src-d/hercules.v8/internal/test/fixtures" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/plumbing/identity" + "gopkg.in/src-d/hercules.v9/internal/test" + "gopkg.in/src-d/hercules.v9/internal/test/fixtures" ) func fixtureDevs() *DevsAnalysis { diff --git a/leaves/file_history.go b/leaves/file_history.go index 03e671ab..410a945c 100644 --- a/leaves/file_history.go +++ b/leaves/file_history.go @@ -12,10 +12,10 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" "gopkg.in/src-d/go-git.v4/utils/merkletrie" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/plumbing/identity" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/plumbing/identity" ) // FileHistoryAnalysis contains the intermediate state which is mutated by Consume(). It should implement diff --git a/leaves/file_history_test.go b/leaves/file_history_test.go index 3e998962..3c5f0276 100644 --- a/leaves/file_history_test.go +++ b/leaves/file_history_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/assert" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - "gopkg.in/src-d/hercules.v8/internal/plumbing/identity" - "gopkg.in/src-d/hercules.v8/internal/test" - "gopkg.in/src-d/hercules.v8/internal/test/fixtures" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + "gopkg.in/src-d/hercules.v9/internal/plumbing/identity" + "gopkg.in/src-d/hercules.v9/internal/test" + "gopkg.in/src-d/hercules.v9/internal/test/fixtures" ) func fixtureFileHistory() *FileHistoryAnalysis { diff --git a/leaves/shotness.go b/leaves/shotness.go index 2eecc794..63d0f80c 100644 --- a/leaves/shotness.go +++ b/leaves/shotness.go @@ -15,10 +15,10 @@ import ( "gopkg.in/bblfsh/sdk.v2/uast/query" "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - uast_items "gopkg.in/src-d/hercules.v8/internal/plumbing/uast" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + uast_items "gopkg.in/src-d/hercules.v9/internal/plumbing/uast" ) // ShotnessAnalysis contains the intermediate state which is mutated by Consume(). It should implement diff --git a/leaves/shotness_test.go b/leaves/shotness_test.go index 77f70aa3..37f78dec 100644 --- a/leaves/shotness_test.go +++ b/leaves/shotness_test.go @@ -14,11 +14,11 @@ import ( "gopkg.in/bblfsh/sdk.v2/uast/nodes" "gopkg.in/bblfsh/sdk.v2/uast/nodes/nodesproto" "gopkg.in/src-d/go-git.v4/plumbing/object" - "gopkg.in/src-d/hercules.v8/internal/core" - "gopkg.in/src-d/hercules.v8/internal/pb" - items "gopkg.in/src-d/hercules.v8/internal/plumbing" - uast_items "gopkg.in/src-d/hercules.v8/internal/plumbing/uast" - "gopkg.in/src-d/hercules.v8/internal/test" + "gopkg.in/src-d/hercules.v9/internal/core" + "gopkg.in/src-d/hercules.v9/internal/pb" + items "gopkg.in/src-d/hercules.v9/internal/plumbing" + uast_items "gopkg.in/src-d/hercules.v9/internal/plumbing/uast" + "gopkg.in/src-d/hercules.v9/internal/test" ) func fixtureShotness() *ShotnessAnalysis { diff --git a/version_test.go b/version_test.go index b10c875e..bc95360f 100644 --- a/version_test.go +++ b/version_test.go @@ -7,5 +7,5 @@ import ( ) func TestVersion(t *testing.T) { - assert.Equal(t, BinaryVersion, 8) // v7 + assert.Equal(t, BinaryVersion, 9) // v9 }