tools: update git-validation to the latest commit
On behalf of @cevich who add fixes for the CI. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
parent
4853644e3c
commit
cf7de42d2f
|
@ -6,5 +6,5 @@ require (
|
||||||
github.com/cpuguy83/go-md2man v1.0.10
|
github.com/cpuguy83/go-md2man v1.0.10
|
||||||
github.com/golangci/golangci-lint v1.18.0
|
github.com/golangci/golangci-lint v1.18.0
|
||||||
github.com/onsi/ginkgo v1.8.0
|
github.com/onsi/ginkgo v1.8.0
|
||||||
github.com/vbatts/git-validation v1.0.0
|
github.com/vbatts/git-validation v1.1.1-0.20200916181008-60cb8713913d
|
||||||
)
|
)
|
||||||
|
|
|
@ -174,8 +174,8 @@ github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyC
|
||||||
github.com/valyala/fasthttp v1.2.0/go.mod h1:4vX61m6KN+xDduDNwXrhIAVZaZaZiQ1luJk8LWSxF3s=
|
github.com/valyala/fasthttp v1.2.0/go.mod h1:4vX61m6KN+xDduDNwXrhIAVZaZaZiQ1luJk8LWSxF3s=
|
||||||
github.com/valyala/quicktemplate v1.1.1/go.mod h1:EH+4AkTd43SvgIbQHYu59/cJyxDoOVRUAfrukLPuGJ4=
|
github.com/valyala/quicktemplate v1.1.1/go.mod h1:EH+4AkTd43SvgIbQHYu59/cJyxDoOVRUAfrukLPuGJ4=
|
||||||
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
|
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
|
||||||
github.com/vbatts/git-validation v1.0.0 h1:Eb7bD3ThOk/2P01M+KaUng0gka9+MVvpn6d0a6AKxq0=
|
github.com/vbatts/git-validation v1.1.1-0.20200916181008-60cb8713913d h1:Fw6uWIX1Fqhi2/KbChF4452/ykNtAs8WfFrXyINtk4Q=
|
||||||
github.com/vbatts/git-validation v1.0.0/go.mod h1:QyK3uQnRYWGt/5ezd8kcpwPrm6zn9tNM/KtozbpfU6k=
|
github.com/vbatts/git-validation v1.1.1-0.20200916181008-60cb8713913d/go.mod h1:QyK3uQnRYWGt/5ezd8kcpwPrm6zn9tNM/KtozbpfU6k=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/net v0.0.0-20170915142106-8351a756f30f/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20170915142106-8351a756f30f/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
|
|
|
@ -4,12 +4,7 @@ go_import_path: github.com/vbatts/git-validation
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- "tip"
|
- "tip"
|
||||||
- "1.x"
|
- "1.13.x"
|
||||||
- "1.11.x"
|
|
||||||
- "1.10.x"
|
|
||||||
- "1.9.x"
|
|
||||||
- "1.8.x"
|
|
||||||
- "1.7.x"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
||||||
|
@ -29,10 +24,8 @@ before_script:
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- go get ./...
|
- go get ./...
|
||||||
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then go get -u golang.org/x/lint/golint ; fi
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then golint -set_exit_status ./... ; fi
|
|
||||||
- go vet -x ./...
|
- go vet -x ./...
|
||||||
- go build .
|
- go build .
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
|
|
|
@ -15,7 +15,7 @@ import (
|
||||||
// If commitrange is a single commit, all ancestor commits up through the hash provided.
|
// If commitrange is a single commit, all ancestor commits up through the hash provided.
|
||||||
// If commitrange is an empty commit range, then nil is returned.
|
// If commitrange is an empty commit range, then nil is returned.
|
||||||
func Commits(commitrange string) ([]CommitEntry, error) {
|
func Commits(commitrange string) ([]CommitEntry, error) {
|
||||||
cmdArgs := []string{"git", "--no-pager", "log", `--pretty=format:%H`, commitrange}
|
cmdArgs := []string{"git", "rev-list", commitrange}
|
||||||
if debug() {
|
if debug() {
|
||||||
logrus.Infof("[git] cmd: %q", strings.Join(cmdArgs, " "))
|
logrus.Infof("[git] cmd: %q", strings.Join(cmdArgs, " "))
|
||||||
}
|
}
|
||||||
|
@ -108,6 +108,9 @@ func Check(commit string) ([]byte, error) {
|
||||||
if gitNewEnough {
|
if gitNewEnough {
|
||||||
excludeList := strings.Split(excludeEnvList, ":")
|
excludeList := strings.Split(excludeEnvList, ":")
|
||||||
for _, exclude := range excludeList {
|
for _, exclude := range excludeList {
|
||||||
|
if exclude == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
args = append(args, "--", ".", fmt.Sprintf(":(exclude)%s", exclude))
|
args = append(args, "--", ".", fmt.Sprintf(":(exclude)%s", exclude))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,7 +224,7 @@ github.com/spf13/viper
|
||||||
github.com/timakin/bodyclose/passes/bodyclose
|
github.com/timakin/bodyclose/passes/bodyclose
|
||||||
# github.com/ultraware/funlen v0.0.1
|
# github.com/ultraware/funlen v0.0.1
|
||||||
github.com/ultraware/funlen
|
github.com/ultraware/funlen
|
||||||
# github.com/vbatts/git-validation v1.0.0
|
# github.com/vbatts/git-validation v1.1.1-0.20200916181008-60cb8713913d
|
||||||
## explicit
|
## explicit
|
||||||
github.com/vbatts/git-validation
|
github.com/vbatts/git-validation
|
||||||
github.com/vbatts/git-validation/git
|
github.com/vbatts/git-validation/git
|
||||||
|
|
Loading…
Reference in New Issue