From 8b77eba9a6b506c71d1542d2fab1495249a7f7b6 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Thu, 5 Mar 2015 10:16:35 -0800 Subject: [PATCH 1/2] Calm down vet about foreign array type Signed-off-by: Alexander Morozov --- container_linux_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container_linux_test.go b/container_linux_test.go index 5f589f3d..5ee46ab1 100644 --- a/container_linux_test.go +++ b/container_linux_test.go @@ -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}, From f0d1a8fc27830b899c5789ba2f80dfa9458792a4 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Thu, 5 Mar 2015 10:17:21 -0800 Subject: [PATCH 2/2] Add go vet check to validate script Signed-off-by: Alexander Morozov --- hack/validate.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hack/validate.sh b/hack/validate.sh index 19bd7ada..70635377 100755 --- a/hack/validate.sh +++ b/hack/validate.sh @@ -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