Merge pull request #14878 from icecrime/14756_golint_on_ci

Enable validate-lint as part of CI
This commit is contained in:
Jessie Frazelle
2015-07-22 16:32:29 -07:00
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -46,6 +46,7 @@ echo
DEFAULT_BUNDLES=(
validate-dco
validate-gofmt
validate-lint
validate-pkg
validate-test
validate-toml
+3
View File
@@ -9,6 +9,9 @@ import (
"github.com/docker/docker/pkg/archive"
)
// ApplyLayer parses a diff in the standard layer format from `layer`, and
// applies it to the directory `dest`. Returns the size in bytes of the
// contents of the layer.
func ApplyLayer(dest string, layer archive.ArchiveReader) (size int64, err error) {
dest = filepath.Clean(dest)
decompressed, err := archive.DecompressStream(layer)