fix: fix builder again
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 5s
CI Workflow / Test readiness for publishing provider (pull_request) Failing after 4m55s
CI Workflow / CI run build and linting (pull_request) Failing after 7m9s
CI Workflow / CI run tests (pull_request) Failing after 7m25s
CI Workflow / Code coverage report (pull_request) Has been skipped
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 5s
CI Workflow / Test readiness for publishing provider (pull_request) Failing after 4m55s
CI Workflow / CI run build and linting (pull_request) Failing after 7m9s
CI Workflow / CI run tests (pull_request) Failing after 7m25s
CI Workflow / Code coverage report (pull_request) Has been skipped
This commit is contained in:
parent
d951dab630
commit
872c06ec68
1 changed files with 4 additions and 4 deletions
|
|
@ -115,8 +115,8 @@ func (b *Builder) Build() error {
|
||||||
return fmt.Errorf("%s", err.Error())
|
return fmt.Errorf("%s", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
slog.Info(">> Creating OAS dir", "path", path.Join(genDir, "oas", "legacy"))
|
slog.Info(">> Creating OAS dir", "path", path.Join(genDir, "oas", "services"))
|
||||||
err = os.MkdirAll(path.Join(genDir, "oas", "legacy"), 0o755) //nolint:gosec // this dir is not sensitive, so we can use 0755
|
err = os.MkdirAll(path.Join(genDir, "oas", "services"), 0o755) //nolint:gosec // this dir is not sensitive, so we can use 0755
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
@ -136,7 +136,7 @@ func (b *Builder) Build() error {
|
||||||
itemVersion,
|
itemVersion,
|
||||||
fmt.Sprintf("%s.json", baseService),
|
fmt.Sprintf("%s.json", baseService),
|
||||||
)
|
)
|
||||||
dstFile := path.Join(genDir, "oas", "legacy", fmt.Sprintf("%s.json", service))
|
dstFile := path.Join(genDir, "oas", "services", fmt.Sprintf("%s.json", service))
|
||||||
_, err = copyFile(srcFile, dstFile)
|
_, err = copyFile(srcFile, dstFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("%s", err.Error())
|
return fmt.Errorf("%s", err.Error())
|
||||||
|
|
@ -539,7 +539,7 @@ func generateServiceFiles(rootDir, generatorDir string) error {
|
||||||
oasFile := path.Join(
|
oasFile := path.Join(
|
||||||
generatorDir,
|
generatorDir,
|
||||||
"oas",
|
"oas",
|
||||||
"legacy",
|
"services",
|
||||||
fmt.Sprintf("%s%s.json", service.Name(), svcVersion.Name()),
|
fmt.Sprintf("%s%s.json", service.Name(), svcVersion.Name()),
|
||||||
)
|
)
|
||||||
if _, oasErr := os.Stat(oasFile); os.IsNotExist(oasErr) {
|
if _, oasErr := os.Stat(oasFile); os.IsNotExist(oasErr) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue