fix: fix builder
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 5s
CI Workflow / CI run build and linting (pull_request) Successful in 20m7s
CI Workflow / Code coverage report (pull_request) Successful in 5s
CI Workflow / CI run tests (pull_request) Failing after 21m28s
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 29m1s
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 5s
CI Workflow / CI run build and linting (pull_request) Successful in 20m7s
CI Workflow / Code coverage report (pull_request) Successful in 5s
CI Workflow / CI run tests (pull_request) Failing after 21m28s
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 29m1s
This commit is contained in:
parent
143df848ed
commit
5427b54995
9 changed files with 204 additions and 34 deletions
|
|
@ -115,13 +115,13 @@ func (b *Builder) Build() error {
|
|||
return fmt.Errorf("%s", err.Error())
|
||||
}
|
||||
|
||||
slog.Info("Creating OAS dir")
|
||||
slog.Info(">> Creating OAS dir", "path", path.Join(genDir, "oas", "legacy"))
|
||||
err = os.MkdirAll(path.Join(genDir, "oas", "legacy"), 0o755) //nolint:gosec // this dir is not sensitive, so we can use 0755
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
slog.Info("Copying OAS files")
|
||||
slog.Info(">> Copying OAS files")
|
||||
for service, item := range res {
|
||||
baseService := strings.TrimSuffix(service, "alpha")
|
||||
baseService = strings.TrimSuffix(baseService, "beta")
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@ package cmd
|
|||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/cmd/cmd/build"
|
||||
"tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/generator/cmd/build"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
publish2 "tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/cmd/cmd/publish"
|
||||
publish2 "tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/generator/cmd/publish"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
module generator
|
||||
|
||||
go 1.25.6
|
||||
|
||||
require (
|
||||
github.com/SladkyCitron/slogcolor v1.8.0
|
||||
github.com/ivanpirog/coloredcobra v1.0.1
|
||||
github.com/ldez/go-git-cmd-wrapper/v2 v2.9.1
|
||||
github.com/spf13/cobra v1.10.2
|
||||
tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview v0.0.23-alpha
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/fatih/color v1.18.0 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||
github.com/mattn/go-colorable v0.1.14 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/spf13/pflag v1.0.10 // indirect
|
||||
golang.org/x/sys v0.41.0 // indirect
|
||||
)
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
//go:build generator
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
|
@ -9,8 +7,7 @@ import (
|
|||
|
||||
"github.com/SladkyCitron/slogcolor"
|
||||
cc "github.com/ivanpirog/coloredcobra"
|
||||
|
||||
"tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/cmd/cmd"
|
||||
"tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/generator/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue