address comments

This commit is contained in:
Shreyas Goenka 2024-09-09 13:57:33 +02:00
parent ab3dd7ab96
commit 804d379100
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
3 changed files with 3 additions and 5 deletions

View File

@ -11,10 +11,10 @@
"toolchain": {
"required": ["go"],
"post_generate": [
"go run ./bundle/internal/schema/*.go ./bundle/generated/jsonschema.json",
"go run ./bundle/internal/schema/*.go ./bundle/schema/jsonschema.json",
"echo 'bundle/internal/tf/schema/\\*.go linguist-generated=true' >> ./.gitattributes",
"echo 'go.sum linguist-generated=true' >> ./.gitattributes",
"echo 'bundle/generated/jsonschema.json linguist-generated=true' >> ./.gitattributes"
"echo 'bundle/schema/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
bundle/generated/jsonschema.json linguist-generated=true
bundle/schema/jsonschema.json linguist-generated=true

View File

@ -1,8 +1,6 @@
package bundle
import (
_ "embed"
"github.com/databricks/cli/bundle/schema"
"github.com/databricks/cli/cmd/root"
"github.com/spf13/cobra"