mirror of
https://github.com/containers/podman.git
synced 2025-10-25 10:16:43 +08:00
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:
13
test/tools/tools.go
Normal file
13
test/tools/tools.go
Normal 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"
|
||||
)
|
||||
Reference in New Issue
Block a user