From 20856a4171689b79b2a691c32b6cb67f00ea34f3 Mon Sep 17 00:00:00 2001 From: Josh Curl Date: Mon, 28 Nov 2016 17:55:05 -0800 Subject: [PATCH 1/2] Fix golint error --- config/validate.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/validate.go b/config/validate.go index 42cb685b..142ec923 100644 --- a/config/validate.go +++ b/config/validate.go @@ -5,7 +5,8 @@ import ( "github.com/xeipuuv/gojsonschema" ) -// TODO: use this function from libcompose +// ConvertKeysToStrings is temporarily copied from libcompose +// TODO: just import this in the future func ConvertKeysToStrings(item interface{}) interface{} { switch typedDatas := item.(type) { case map[string]interface{}: From dcb0456e18acdb4c02d8e4ea0ad16d349237ce5f Mon Sep 17 00:00:00 2001 From: Josh Curl Date: Mon, 28 Nov 2016 17:55:25 -0800 Subject: [PATCH 2/2] Add golint to build image --- Dockerfile.dapper | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile.dapper b/Dockerfile.dapper index 28f65225..a59903f3 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -142,6 +142,9 @@ RUN curl -fL ${!BUILD_DOCKER_URL} > /usr/bin/docker && \ # Install Trash RUN go get github.com/rancher/trash +# Install golint +RUN go get github.com/golang/lint/golint + RUN go get gopkg.in/check.v1 # Install dapper