mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Enable validate-lint as part of CI
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
This commit is contained in:
parent
3198e76b77
commit
bc8b8e03b4
2 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,7 @@ echo
|
|||
DEFAULT_BUNDLES=(
|
||||
validate-dco
|
||||
validate-gofmt
|
||||
validate-lint
|
||||
validate-pkg
|
||||
validate-test
|
||||
validate-toml
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue