Check if missing/modified/unused deps in vendor and fix errors (#1468)

* Check if missing deps in vendor

This will catch import from other repos. (maybe by auto-import)

* Remove github.com/smartystreets unused deps

* Remove github.com/boltdb/bolt unused dep

* Fetch github.com/go-xorm/core + sync gopkg.in/ldap.v2/ldap.go

* Auto-install govendor + reinstall github.com/boltdb/bolt needed by vendor/github.com/blevesearch/bleve/index/store/boltdb

* Update go-xorm/xorm to a5cb21 in vendor.json

* Use a custom repo for implementing change to bolt dep.

* Switching bolt to github.com/go-gitea/bolt

* Switching bolt to github.com/go-gitea/bolt (fork version)

* change the drone sign
This commit is contained in:
Antoine GIRARD 2017-04-24 16:31:46 +02:00 committed by Lunny Xiao
parent fcc7cdab11
commit eb1075dd4c
6 changed files with 22 additions and 37 deletions

View file

@ -19,6 +19,7 @@ pipeline:
- make generate
- make vet
- make lint
- make test-vendor
- make test
- make build
when:

View file

@ -1 +1 @@
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIGJhc2U6IC9zcnYvYXBwCiAgcGF0aDogc3JjL2NvZGUuZ2l0ZWEuaW8vZ2l0ZWEKCnBpcGVsaW5lOgogIGNsb25lOgogICAgaW1hZ2U6IHBsdWdpbnMvZ2l0CiAgICB0YWdzOiB0cnVlCgogIHRlc3Q6CiAgICBpbWFnZTogd2ViaGlwcGllL2dvbGFuZzplZGdlCiAgICBwdWxsOiB0cnVlCiAgICBlbnZpcm9ubWVudDoKICAgICAgVEFHUzogYmluZGF0YSBzcWxpdGUKICAgICAgR09QQVRIOiAvc3J2L2FwcAogICAgY29tbWFuZHM6CiAgICAgIC0gYXBrIC1VIGFkZCBvcGVuc3NoLWNsaWVudAogICAgICAtIG1ha2UgY2xlYW4KICAgICAgLSBtYWtlIGdlbmVyYXRlCiAgICAgIC0gbWFrZSB2ZXQKICAgICAgLSBtYWtlIGxpbnQKICAgICAgLSBtYWtlIHRlc3QKICAgICAgLSBtYWtlIGJ1aWxkCiAgICB3aGVuOgogICAgICBldmVudDogWyBwdXNoLCB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bWFnZTogbXlzcWw6NS43CiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBNWVNRTF9EQVRBQkFTRT10ZXN0CiAgICAgIC0gTVlTUUxfQUxMT1dfRU1QVFlfUEFTU1dPUkQ9eWVzCiAgICB3aGVuOgogICAgICBldmVudDogWyBwdXNoLCB0YWcsIHB1bGxfcmVxdWVzdCBdCgogIHBnc3FsOgogICAgaW1hZ2U6IHBvc3RncmVzOjkuNQogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gUE9TVEdSRVNfREI9dGVzdAogICAgd2hlbjoKICAgICAgZXZlbnQ6IFsgcHVzaCwgdGFnLCBwdWxsX3JlcXVlc3QgXQo.C4Zwhff5mceN64UpDsVF263WmpDTnMMY0pcbB6KKdd0

View file

@ -79,6 +79,13 @@ integrations: build
test:
for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done;
.PHONY: test-vendor
test-vendor:
@hash govendor > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/kardianos/govendor; \
fi
govendor status +outside +unused || exit 1
.PHONY: test-mysql
test-mysql:
@echo "Not integrated yet!"

View file

@ -279,9 +279,9 @@ func (b *Base) ForUpdateSql(query string) string {
func (b *Base) LogSQL(sql string, args []interface{}) {
if b.logger != nil && b.logger.IsShowSQL() {
if len(args) > 0 {
b.logger.Info("[sql]", sql, args)
b.logger.Infof("[SQL] %v %v", sql, args)
} else {
b.logger.Info("[sql]", sql)
b.logger.Infof("[SQL] %v", sql)
}
}
}

2
vendor/gopkg.in/ldap.v2/ldap.go generated vendored
View file

@ -60,7 +60,7 @@ var ApplicationMap = map[uint8]string{
ApplicationExtendedResponse: "Extended Response",
}
// LDAP Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10)
// Ldap Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10)
const (
BeheraPasswordExpired = 0
BeheraAccountLocked = 1

43
vendor/vendor.json vendored
View file

@ -257,10 +257,11 @@
"revisionTime": "2016-12-08T13:07:38Z"
},
{
"checksumSHA1": "J+kVue/HTH4sELlqMO4z0tx9DiA=",
"checksumSHA1": "26XPwPnOEwZ1COWicbv5xCBY+rg=",
"origin": "github.com/go-gitea/bolt",
"path": "github.com/boltdb/bolt",
"revision": "e9cf4fae01b5a8ff89d0ec6b32f0d9c9f79aefdd",
"revisionTime": "2017-01-31T19:20:18Z"
"revision": "ccd680d8c1a0179ac3d68f692b01e1a1589cbfc7",
"revisionTime": "2017-04-20T01:09:17Z"
},
{
"checksumSHA1": "NClRfzxXDSt/g4lM5BIkKhYRVoQ=",
@ -443,10 +444,10 @@
"revisionTime": "2017-02-16T03:03:40Z"
},
{
"checksumSHA1": "OCcksAYN5m0kc5yJF/Ba4VVHqeA=",
"checksumSHA1": "vt2CGANHLNXPAZ01ve3UlsgQ0uU=",
"path": "github.com/go-xorm/core",
"revision": "e9e84b6f94ace6dec682a39034de56abffb964dd",
"revisionTime": "2017-02-06T14:57:10Z"
"revision": "e8409d73255791843585964791443dbad877058c",
"revisionTime": "2017-03-17T12:25:07Z"
},
{
"checksumSHA1": "k52lEKLp8j5M+jFpe+3u+bIFpxQ=",
@ -455,10 +456,10 @@
"revisionTime": "2016-08-11T02:11:45Z"
},
{
"checksumSHA1": "3FEBM0FYERf8jpaResApwcQpr40=",
"checksumSHA1": "/vlyLLStrbfErk/rR3SPuBGQeqk=",
"path": "github.com/go-xorm/xorm",
"revision": "7e70eb82224bc950d4fb936036e925a51947c245",
"revisionTime": "2017-04-02T10:02:47Z"
"revision": "a5cb21c44305815170d0d72563e47d585e8dcabf",
"revisionTime": "2017-04-05T10:17:41Z"
},
{
"checksumSHA1": "1ft/4j5MFa7C9dPI9whL03HSUzk=",
@ -1024,30 +1025,6 @@
"revision": "1dba4b3954bc059efc3991ec364f9f9a35f597d2",
"revisionTime": "2016-09-18T04:11:01Z"
},
{
"checksumSHA1": "Vzb+dEH/LTYbvr8RXHmt6xJHz04=",
"path": "github.com/smartystreets/assertions/internal/go-render/render",
"revision": "2063fd1cc7c975db70502811a34b06ad034ccdf2",
"revisionTime": "2016-07-07T19:03:55Z"
},
{
"checksumSHA1": "SLC6TfV4icQA9l8YJQu8acJYbuo=",
"path": "github.com/smartystreets/assertions/internal/oglematchers",
"revision": "2063fd1cc7c975db70502811a34b06ad034ccdf2",
"revisionTime": "2016-07-07T19:03:55Z"
},
{
"checksumSHA1": "9LakndErFi5uCXtY1KWl0iRnT4c=",
"path": "github.com/smartystreets/goconvey/convey/gotest",
"revision": "019319c870f8f1d61dc9c34291abff5cd128b6e8",
"revisionTime": "2016-11-03T17:15:00Z"
},
{
"checksumSHA1": "FWDhk37bhAwZ2363D/L2xePwR64=",
"path": "github.com/smartystreets/goconvey/convey/reporting",
"revision": "019319c870f8f1d61dc9c34291abff5cd128b6e8",
"revisionTime": "2016-11-03T17:15:00Z"
},
{
"checksumSHA1": "KE+vv2khbshw+PA9UyHHxd8WKKw=",
"origin": "github.com/blevesearch/bleve/vendor/github.com/steveyen/gtreap",