schema local to generator

This commit is contained in:
Shreyas Goenka 2024-09-04 11:32:39 +02:00
parent 66cbb548ef
commit ba3f004da1
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
3 changed files with 3 additions and 3 deletions

View File

@ -11,10 +11,10 @@
"toolchain": {
"required": ["go"],
"post_generate": [
"go run ./bundle/internal/schema/*.go ./cmd/bundle/_generated/jsonschema.json",
"go run ./bundle/internal/schema/*.go ./bundle/internal/schema/generated/jsonschema.json",
"echo 'bundle/internal/tf/schema/\\*.go linguist-generated=true' >> ./.gitattributes",
"echo 'go.sum linguist-generated=true' >> ./.gitattributes",
"echo 'cmd/bundle/_generated linguist-generated=true' >> ./.gitattributes"
"echo 'bundle/internal/schema/generated/jsonschema.json linguist-generated=true' >> ./.gitattributes"
]
}
}

2
.gitattributes vendored
View File

@ -120,4 +120,4 @@ cmd/workspace/workspace-conf/workspace-conf.go linguist-generated=true
cmd/workspace/workspace/workspace.go linguist-generated=true
bundle/internal/tf/schema/\*.go linguist-generated=true
go.sum linguist-generated=true
cmd/bundle/_generated linguist-generated=true
bundle/internal/schema/generated/jsonschema.json linguist-generated=true