Merge pull request #430 from LK4D4/vet_checks
Add vet checks to validate script
This commit is contained in:
commit
aaca2848a1
|
@ -125,7 +125,7 @@ func TestGetContainerState(t *testing.T) {
|
|||
container := &linuxContainer{
|
||||
id: "myid",
|
||||
config: &configs.Config{
|
||||
Namespaces: configs.Namespaces{
|
||||
Namespaces: []configs.Namespace{
|
||||
{Type: configs.NEWPID},
|
||||
{Type: configs.NEWNS},
|
||||
{Type: configs.NEWNET, Path: expectedNetworkPath},
|
||||
|
|
|
@ -7,6 +7,8 @@ validate() {
|
|||
sed -i 's!docker/docker!docker/libcontainer!' /go/src/github.com/docker/docker/hack/make/.validate
|
||||
bash /go/src/github.com/docker/docker/hack/make/validate-dco
|
||||
bash /go/src/github.com/docker/docker/hack/make/validate-gofmt
|
||||
go get golang.org/x/tools/cmd/vet
|
||||
go vet github.com/docker/libcontainer/...
|
||||
}
|
||||
|
||||
# run validations
|
||||
|
|
Loading…
Reference in New Issue