vendor test dependencies instead of installing via network

We can vendor the test dependencies such as go-md2man, git-validation
and goimports. This allows us to always install the same version as
specified in go.mod. Also we do not rely on a network connection for
this.

The advantage with this method is that dependabot will also update the
dependencies for us and we do not have to hardcode versions in the
Makefile.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2022-05-03 18:34:38 +02:00
parent 1e0c50df38
commit 9166894c69
102 changed files with 31615 additions and 7 deletions

13
test/tools/tools.go Normal file
View File

@ -0,0 +1,13 @@
//go:build tools
// +build tools
package tools
// Importing the packages here will allow to vendor those via
// `go mod vendor`.
import (
_ "github.com/cpuguy83/go-md2man/v2"
_ "github.com/vbatts/git-validation"
_ "golang.org/x/tools/cmd/goimports"
)