1
0
mirror of https://github.com/rancher/os.git synced 2025-08-28 11:12:59 +00:00

Merge pull request #1434 from joshwget/add-golint-to-build-image

Add golint to build image
This commit is contained in:
Sven Dowideit 2016-11-30 10:38:33 +10:00 committed by GitHub
commit 14e548bf40
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -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{}: