Merge pull request #430 from LK4D4/vet_checks

Add vet checks to validate script
This commit is contained in:
Victor Marmol 2015-03-13 11:40:54 -07:00
commit aaca2848a1
2 changed files with 3 additions and 1 deletions

View File

@ -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},

View File

@ -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