mirror of
https://github.com/containers/podman.git
synced 2025-10-21 05:13:47 +08:00
exclude new tools vendor dir from validate
We have no control over the code in the vendored files. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
---
|
||||
exclude: ^vendor/
|
||||
exclude: ^vendor/|^test/tools/vendor/
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
||||
rev: v3.4.0
|
||||
|
3
Makefile
3
Makefile
@ -232,7 +232,7 @@ endif
|
||||
.PHONY: .gitvalidation
|
||||
.gitvalidation: .gopathok
|
||||
@echo "Validating vs commit '$(call err_if_empty,EPOCH_TEST_COMMIT)'"
|
||||
GIT_CHECK_EXCLUDE="./vendor:docs/make.bat:test/buildah-bud/buildah-tests.diff" ./test/tools/build/git-validation -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..$(HEAD)
|
||||
GIT_CHECK_EXCLUDE="./vendor:./test/tools/vendor:docs/make.bat:test/buildah-bud/buildah-tests.diff" ./test/tools/build/git-validation -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..$(HEAD)
|
||||
|
||||
.PHONY: lint
|
||||
lint: golangci-lint
|
||||
@ -254,6 +254,7 @@ gofmt: ## Verify the source code gofmt
|
||||
-name '.golangci.yml' -o \
|
||||
-name 'Makefile' -o \
|
||||
-path './vendor/*' -prune -o \
|
||||
-path './test/tools/vendor/*' -prune -o \
|
||||
-path './contrib/*' -prune \
|
||||
\) -exec gofmt -d -e -s -w {} \+
|
||||
git diff --exit-code
|
||||
|
1
test/tools/vendor/github.com/cpuguy83/go-md2man/v2/Makefile
generated
vendored
1
test/tools/vendor/github.com/cpuguy83/go-md2man/v2/Makefile
generated
vendored
@ -32,4 +32,3 @@ check-mod: # verifies that module changes for go.mod and go.sum are checked in
|
||||
.PHONY: vendor
|
||||
vendor: mod
|
||||
@go mod vendor -v
|
||||
|
||||
|
1
test/tools/vendor/github.com/cpuguy83/go-md2man/v2/go-md2man.1.md
generated
vendored
1
test/tools/vendor/github.com/cpuguy83/go-md2man/v2/go-md2man.1.md
generated
vendored
@ -20,4 +20,3 @@ go-md2man 1 "January 2015" go-md2man "User Manual"
|
||||
|
||||
# HISTORY
|
||||
January 2015, Originally compiled by Brian Goff( cpuguy83@gmail.com )
|
||||
|
||||
|
8
test/tools/vendor/github.com/hashicorp/go-version/.travis.yml
generated
vendored
8
test/tools/vendor/github.com/hashicorp/go-version/.travis.yml
generated
vendored
@ -1,6 +1,6 @@
|
||||
language: go
|
||||
language: go
|
||||
|
||||
go:
|
||||
go:
|
||||
- 1.2
|
||||
- 1.3
|
||||
- 1.4
|
||||
@ -8,6 +8,6 @@ go:
|
||||
- "1.10"
|
||||
- 1.11
|
||||
- 1.12
|
||||
|
||||
|
||||
script:
|
||||
- go test
|
||||
- go test
|
||||
|
1
test/tools/vendor/github.com/hashicorp/go-version/LICENSE
generated
vendored
1
test/tools/vendor/github.com/hashicorp/go-version/LICENSE
generated
vendored
@ -351,4 +351,3 @@ Exhibit B - “Incompatible With Secondary Licenses” Notice
|
||||
This Source Code Form is “Incompatible
|
||||
With Secondary Licenses”, as defined by
|
||||
the Mozilla Public License, v. 2.0.
|
||||
|
||||
|
2
test/tools/vendor/github.com/konsorten/go-windows-terminal-sequences/README.md
generated
vendored
2
test/tools/vendor/github.com/konsorten/go-windows-terminal-sequences/README.md
generated
vendored
@ -9,7 +9,7 @@ See [Console Virtual Terminal Sequences](https://docs.microsoft.com/en-us/window
|
||||
```go
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
|
||||
sequences "github.com/konsorten/go-windows-terminal-sequences"
|
||||
)
|
||||
|
||||
|
2
test/tools/vendor/github.com/sirupsen/logrus/CHANGELOG.md
generated
vendored
2
test/tools/vendor/github.com/sirupsen/logrus/CHANGELOG.md
generated
vendored
@ -1,7 +1,7 @@
|
||||
# 1.4.1
|
||||
This new release introduces:
|
||||
* Enhance TextFormatter to not print caller information when they are empty (#944)
|
||||
* Remove dependency on golang.org/x/crypto (#932, #943)
|
||||
* Remove dependency on golang.org/x/crypto (#932, #943)
|
||||
|
||||
Fixes:
|
||||
* Fix Entry.WithContext method to return a copy of the initial entry (#941)
|
||||
|
2
test/tools/vendor/github.com/sirupsen/logrus/README.md
generated
vendored
2
test/tools/vendor/github.com/sirupsen/logrus/README.md
generated
vendored
@ -84,7 +84,7 @@ time="2015-03-26T01:27:38-04:00" level=fatal method=github.com/sirupsen/arcticcr
|
||||
```
|
||||
Note that this does add measurable overhead - the cost will depend on the version of Go, but is
|
||||
between 20 and 40% in recent tests with 1.6 and 1.7. You can validate this in your
|
||||
environment via benchmarks:
|
||||
environment via benchmarks:
|
||||
```
|
||||
go test -bench=.*CallerTracing
|
||||
```
|
||||
|
8
test/tools/vendor/github.com/sirupsen/logrus/appveyor.yml
generated
vendored
8
test/tools/vendor/github.com/sirupsen/logrus/appveyor.yml
generated
vendored
@ -1,14 +1,14 @@
|
||||
version: "{build}"
|
||||
platform: x64
|
||||
clone_folder: c:\gopath\src\github.com\sirupsen\logrus
|
||||
environment:
|
||||
environment:
|
||||
GOPATH: c:\gopath
|
||||
branches:
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
install:
|
||||
install:
|
||||
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
|
||||
- go version
|
||||
build_script:
|
||||
build_script:
|
||||
- go get -t
|
||||
- go test
|
||||
|
1
test/tools/vendor/github.com/sirupsen/logrus/terminal_check_bsd.go
generated
vendored
1
test/tools/vendor/github.com/sirupsen/logrus/terminal_check_bsd.go
generated
vendored
@ -10,4 +10,3 @@ func isTerminal(fd int) bool {
|
||||
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
|
1
test/tools/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
generated
vendored
1
test/tools/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
generated
vendored
@ -10,4 +10,3 @@ func isTerminal(fd int) bool {
|
||||
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
|
3
test/tools/vendor/github.com/vbatts/git-validation/README.md
generated
vendored
3
test/tools/vendor/github.com/vbatts/git-validation/README.md
generated
vendored
@ -73,7 +73,7 @@ vbatts@valse ~/src/vb/git-validation (master) $ git-validation -v
|
||||
|
||||
Here's a failure:
|
||||
```console
|
||||
vbatts@valse ~/src/vb/git-validation (master) $ git-validation
|
||||
vbatts@valse ~/src/vb/git-validation (master) $ git-validation
|
||||
* 49f51a8 "README: adding install and usage" ... FAIL
|
||||
- FAIL - does not have a valid DCO
|
||||
* d614ccf "*: run tests in a runner" ... PASS
|
||||
@ -103,4 +103,3 @@ See [`./rules/`](./rules/).
|
||||
Feel free to contribute more.
|
||||
|
||||
Otherwise, by using `validate` package API directly, rules can be handed directly to the `validate.Runner`.
|
||||
|
||||
|
Reference in New Issue
Block a user