From 3a8ef767f806a77aace6ae030b1570087ee0a8b5 Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Fri, 29 Jun 2018 17:09:50 +0200 Subject: [PATCH] Add a doc.go file so the compose/schema/data directory can be vendored in another project, without being pruned. Signed-off-by: Silvin Lubecki --- cli/compose/schema/bindata.go | 2 +- cli/compose/schema/data/doc.go | 8 ++++++++ cli/compose/schema/schema.go | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 cli/compose/schema/data/doc.go diff --git a/cli/compose/schema/bindata.go b/cli/compose/schema/bindata.go index 9ec4891fa3..0286670541 100644 --- a/cli/compose/schema/bindata.go +++ b/cli/compose/schema/bindata.go @@ -1,4 +1,4 @@ -// Code generated by "esc -o bindata.go -pkg schema -private -modtime=1518458244 data"; DO NOT EDIT. +// Code generated by "esc -o bindata.go -pkg schema -ignore .*\.go -private -modtime=1518458244 data"; DO NOT EDIT. package schema diff --git a/cli/compose/schema/data/doc.go b/cli/compose/schema/data/doc.go new file mode 100644 index 0000000000..f8ddd0091e --- /dev/null +++ b/cli/compose/schema/data/doc.go @@ -0,0 +1,8 @@ +/* + Package data contains all the Compose file JSON schemas, starting from v3.0. +*/ + +// +// +domain=docker.com + +package data diff --git a/cli/compose/schema/schema.go b/cli/compose/schema/schema.go index bbf20fb8a5..45b719d79d 100644 --- a/cli/compose/schema/schema.go +++ b/cli/compose/schema/schema.go @@ -1,6 +1,6 @@ package schema -//go:generate esc -o bindata.go -pkg schema -private -modtime=1518458244 data +//go:generate esc -o bindata.go -pkg schema -ignore .*\.go -private -modtime=1518458244 data import ( "fmt"