fix: builder and sdk changes #81

Merged
marcel.henselin merged 85 commits from chore/update_goreleaser into alpha 2026-03-11 13:13:46 +00:00
Showing only changes of commit 872c06ec68 - Show all commits

View file

@ -115,8 +115,8 @@ func (b *Builder) Build() error {
return fmt.Errorf("%s", err.Error())
}
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
slog.Info(">> Creating OAS dir", "path", path.Join(genDir, "oas", "services"))
err = os.MkdirAll(path.Join(genDir, "oas", "services"), 0o755) //nolint:gosec // this dir is not sensitive, so we can use 0755
if err != nil {
return err
}
@ -136,7 +136,7 @@ func (b *Builder) Build() error {
itemVersion,
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)
if err != nil {
return fmt.Errorf("%s", err.Error())
@ -539,7 +539,7 @@ func generateServiceFiles(rootDir, generatorDir string) error {
oasFile := path.Join(
generatorDir,
"oas",
"legacy",
"services",
fmt.Sprintf("%s%s.json", service.Name(), svcVersion.Name()),
)
if _, oasErr := os.Stat(oasFile); os.IsNotExist(oasErr) {