diff --git a/generate.go b/generate.go deleted file mode 100644 index 8458a69a..00000000 --- a/generate.go +++ /dev/null @@ -1,3 +0,0 @@ -package main - -//go:generate go run scripts/inline_schema.go diff --git a/scripts/inline_schema.go b/scripts/inline_schema.go deleted file mode 100644 index 510f1fee..00000000 --- a/scripts/inline_schema.go +++ /dev/null @@ -1,37 +0,0 @@ -package main - -import ( - "io/ioutil" - "os" - "text/template" -) - -func main() { - t, err := template.New("schema_template").ParseFiles("./scripts/schema_template") - if err != nil { - panic(err) - } - - schemaV1, err := ioutil.ReadFile("./scripts/config_schema_v1.json") - if err != nil { - panic(err) - } - schemaV2, err := ioutil.ReadFile("./scripts/config_schema_v2.0.json") - if err != nil { - panic(err) - } - - inlinedFile, err := os.Create("vendor/github.com/docker/libcompose/config/schema.go") - if err != nil { - panic(err) - } - - err = t.Execute(inlinedFile, map[string]string{ - "schemaV1": string(schemaV1), - "schemaV2": string(schemaV2), - }) - - if err != nil { - panic(err) - } -}