提交 0c72649a 编写于 作者: 武毅 提交者: GitHub

Fix gometalinter versioning (#4832)

* fix gometalinter versioning

* stop gometalinter
上级 8fe7bf38
...@@ -31,6 +31,3 @@ ...@@ -31,6 +31,3 @@
- id: go-fmt - id: go-fmt
types: types:
- go - go
- id: gometalinter
types:
- go
hash: 1b9b07408ca7fac27a374dc2ccd2433e4bff090484008a037df967284949a582 hash: 328e7b9b7306b45e7b9879139a9f86698115981f6283032e1312093a6a6ddb04
updated: 2017-08-07T23:37:48.867469328Z updated: 2017-10-16T08:00:23.484693528Z
imports: imports:
- name: github.com/alecthomas/gometalinter
version: bae2f1293d092fd8167939d5108d1b025eaef9de
- name: github.com/beorn7/perks - name: github.com/beorn7/perks
version: 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9 version: 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9
subpackages: subpackages:
...@@ -10,7 +12,7 @@ imports: ...@@ -10,7 +12,7 @@ imports:
- name: github.com/cockroachdb/cmux - name: github.com/cockroachdb/cmux
version: 112f0506e7743d64a6eb8fedbcff13d9979bbf92 version: 112f0506e7743d64a6eb8fedbcff13d9979bbf92
- name: github.com/coreos/etcd - name: github.com/coreos/etcd
version: d0d1a87aa96ae14914751d42264262cb69eda170 version: f1d7dd87da3e8feab4aaf675b8e29c6a5ed5f58b
subpackages: subpackages:
- alarm - alarm
- auth - auth
...@@ -149,7 +151,7 @@ imports: ...@@ -149,7 +151,7 @@ imports:
- name: github.com/satori/go.uuid - name: github.com/satori/go.uuid
version: 879c5887cd475cd7864858769793b2ceb0d44feb version: 879c5887cd475cd7864858769793b2ceb0d44feb
- name: github.com/sirupsen/logrus - name: github.com/sirupsen/logrus
version: a3f95b5c423586578a4e099b11a46c2479628cac version: f006c2ac4710855cf0f916dd6b77acf6b048dc6e
- name: github.com/topicai/candy - name: github.com/topicai/candy
version: 1b9030d056fa9f8c4b1f9c91b52fe4b8ab4cd8cc version: 1b9030d056fa9f8c4b1f9c91b52fe4b8ab4cd8cc
- name: github.com/ugorji/go - name: github.com/ugorji/go
...@@ -159,12 +161,13 @@ imports: ...@@ -159,12 +161,13 @@ imports:
- name: github.com/xiang90/probing - name: github.com/xiang90/probing
version: 07dd2e8dfe18522e9c447ba95f2fe95262f63bb2 version: 07dd2e8dfe18522e9c447ba95f2fe95262f63bb2
- name: golang.org/x/crypto - name: golang.org/x/crypto
version: 1351f936d976c60a0a48d728281922cf63eafb8d version: 9419663f5a44be8b34ca85f08abc5fe1be11f8a3
repo: https://github.com/golang/crypto.git repo: https://github.com/golang/crypto.git
vcs: git vcs: git
subpackages: subpackages:
- bcrypt - bcrypt
- blowfish - blowfish
- ssh/terminal
- name: golang.org/x/net - name: golang.org/x/net
version: c8c74377599bd978aee1cf3b9b63a8634051cec2 version: c8c74377599bd978aee1cf3b9b63a8634051cec2
subpackages: subpackages:
...@@ -219,3 +222,4 @@ testImports: ...@@ -219,3 +222,4 @@ testImports:
version: 05e8a0eda380579888eb53c394909df027f06991 version: 05e8a0eda380579888eb53c394909df027f06991
subpackages: subpackages:
- assert - assert
...@@ -24,3 +24,5 @@ import: ...@@ -24,3 +24,5 @@ import:
vcs: git vcs: git
- package: github.com/satori/go.uuid - package: github.com/satori/go.uuid
version: v1.1.0 version: v1.1.0
- package: github.com/alecthomas/gometalinter
version: v1.2.1
...@@ -11,7 +11,13 @@ set -e ...@@ -11,7 +11,13 @@ set -e
# install glide # install glide
curl https://glide.sh/get | bash curl https://glide.sh/get | bash
eval "$(GIMME_GO_VERSION=1.8.3 gimme)" eval "$(GIMME_GO_VERSION=1.8.3 gimme)"
go get -u github.com/alecthomas/gometalinter
# set up go environment for running gometalinter
mkdir -p $GOPATH/src/github.com/PaddlePaddle/
ln -sf $TRAVIS_BUILD_DIR $GOPATH/src/github.com/PaddlePaddle/Paddle
cd $GOPATH/src/github.com/PaddlePaddle/Paddle/go; glide install; cd -
go get github.com/alecthomas/gometalinter
gometalinter --install gometalinter --install
cd $TRAVIS_BUILD_DIR cd $TRAVIS_BUILD_DIR
...@@ -19,10 +25,7 @@ export PATH=/usr/bin:$PATH ...@@ -19,10 +25,7 @@ export PATH=/usr/bin:$PATH
pre-commit install pre-commit install
clang-format --version clang-format --version
# set up go environment for running gometalinter
mkdir -p $GOPATH/src/github.com/PaddlePaddle/
ln -sf $TRAVIS_BUILD_DIR $GOPATH/src/github.com/PaddlePaddle/Paddle
cd $GOPATH/src/github.com/PaddlePaddle/Paddle/go; glide install; cd -
if ! pre-commit run -a ; then if ! pre-commit run -a ; then
git diff git diff
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册