fix: add goimports installation to project script
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 6s
CI Workflow / CI run tests (pull_request) Failing after 13m58s
CI Workflow / CI run build and linting (pull_request) Failing after 13m47s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Failing after 21m5s
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 6s
CI Workflow / CI run tests (pull_request) Failing after 13m58s
CI Workflow / CI run build and linting (pull_request) Failing after 13m47s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Failing after 21m5s
This commit is contained in:
parent
e088ed2c7d
commit
71b7c69f10
30 changed files with 169 additions and 1568 deletions
|
|
@ -60,7 +60,7 @@ func (b *Builder) Build() error {
|
|||
|
||||
if !b.PackagesOnly {
|
||||
slog.Info(" ... Checking needed commands available")
|
||||
err := checkCommands([]string{"tfplugingen-framework", "tfplugingen-openapi"})
|
||||
err := checkCommands([]string{})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -566,7 +566,9 @@ func generateServiceFiles(rootDir, generatorDir string) error {
|
|||
|
||||
// nolint:gosec // #nosec this command is not using any untrusted input, so we can ignore gosec warning
|
||||
cmd := exec.Command(
|
||||
"tfplugingen-openapi",
|
||||
"go",
|
||||
"run",
|
||||
"github.com/hashicorp/terraform-plugin-codegen-openapi/cmd/tfplugingen-openapi",
|
||||
"generate",
|
||||
"--config",
|
||||
path.Join(rootDir, "service_specs", service.Name(), svcVersion.Name(), fileName),
|
||||
|
|
@ -640,7 +642,9 @@ func generateServiceFiles(rootDir, generatorDir string) error {
|
|||
|
||||
// nolint:gosec // #nosec this command is not using any untrusted input, so we can ignore gosec warning
|
||||
cmd2 := exec.Command(
|
||||
"tfplugingen-framework",
|
||||
"go",
|
||||
"run",
|
||||
"github.com/hashicorp/terraform-plugin-codegen-framework/cmd/tfplugingen-framework",
|
||||
"generate",
|
||||
"resources",
|
||||
"--input",
|
||||
|
|
@ -705,7 +709,9 @@ func generateServiceFiles(rootDir, generatorDir string) error {
|
|||
|
||||
// nolint:gosec // #nosec this command is not using any untrusted input, so we can ignore gosec warning
|
||||
cmd3 := exec.Command(
|
||||
"tfplugingen-framework",
|
||||
"go",
|
||||
"run",
|
||||
"github.com/hashicorp/terraform-plugin-codegen-framework/cmd/tfplugingen-framework",
|
||||
"generate",
|
||||
"data-sources",
|
||||
"--input",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue