From bc8b8e03b48bf1ef6ce6b67271948e4a20c2ed31 Mon Sep 17 00:00:00 2001 From: Arnaud Porterie Date: Wed, 22 Jul 2015 15:19:32 -0700 Subject: [PATCH] Enable validate-lint as part of CI Signed-off-by: Arnaud Porterie --- hack/make.sh | 1 + pkg/chrootarchive/diff_windows.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/hack/make.sh b/hack/make.sh index c7a496fab7..2e99cfb213 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -46,6 +46,7 @@ echo DEFAULT_BUNDLES=( validate-dco validate-gofmt + validate-lint validate-pkg validate-test validate-toml diff --git a/pkg/chrootarchive/diff_windows.go b/pkg/chrootarchive/diff_windows.go index 72289c8498..0c9b38e48f 100644 --- a/pkg/chrootarchive/diff_windows.go +++ b/pkg/chrootarchive/diff_windows.go @@ -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)