Replace go-bindata with esc

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: b127b8d927
Component: cli
This commit is contained in:
Daniel Nephin
2018-02-12 14:23:19 -05:00
parent 119c362758
commit 51450d870a
3 changed files with 435 additions and 333 deletions
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,6 +1,6 @@
package schema
//go:generate go-bindata -pkg schema -nometadata data
//go:generate esc -o bindata.go -pkg schema -private -modtime=1518458244 data
import (
"fmt"
@@ -56,7 +56,7 @@ func normalizeVersion(version string) string {
// Validate uses the jsonschema to validate the configuration
func Validate(config map[string]interface{}, version string) error {
schemaData, err := Asset(fmt.Sprintf("data/config_schema_v%s.json", version))
schemaData, err := _escFSByte(false, fmt.Sprintf("/data/config_schema_v%s.json", version))
if err != nil {
return errors.Errorf("unsupported Compose file version: %s", version)
}