mirror of
https://github.com/rancher/os.git
synced 2025-08-29 11:34:42 +00:00
Merge pull request #1434 from joshwget/add-golint-to-build-image
Add golint to build image
This commit is contained in:
commit
14e548bf40
@ -142,6 +142,9 @@ RUN curl -fL ${!BUILD_DOCKER_URL} > /usr/bin/docker && \
|
|||||||
# Install Trash
|
# Install Trash
|
||||||
RUN go get github.com/rancher/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
|
RUN go get gopkg.in/check.v1
|
||||||
|
|
||||||
# Install dapper
|
# Install dapper
|
||||||
|
@ -5,7 +5,8 @@ import (
|
|||||||
"github.com/xeipuuv/gojsonschema"
|
"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{} {
|
func ConvertKeysToStrings(item interface{}) interface{} {
|
||||||
switch typedDatas := item.(type) {
|
switch typedDatas := item.(type) {
|
||||||
case map[string]interface{}:
|
case map[string]interface{}:
|
||||||
|
Loading…
Reference in New Issue
Block a user