From 3ccc2942728277a2ec839f4c29001f9cf2e2a08a Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 30 Oct 2022 21:23:05 +0100 Subject: [PATCH] fix builder for python and go --- python-client/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python-client/build.sh b/python-client/build.sh index fc3bc71625..7fb2a8f2f5 100755 --- a/python-client/build.sh +++ b/python-client/build.sh @@ -1,9 +1,10 @@ #!/bin/bash set -e -cp ../backend/windmill-api/openapi.yaml openapi.yaml +mkdir openapi +cp ../backend/windmill-api/openapi.yaml openapi/openapi.yaml -npx @redocly/openapi-cli@latest bundle openapi.yaml > openapi-bundled.yaml +npx @redocly/openapi-cli@latest bundle openapi/openapi.yaml > openapi-bundled.yaml sed -z 's/FlowModuleValue:/FlowModuleValue2:/' openapi-bundled.yaml > openapi-decycled.yaml echo " FlowModuleValue: {}" >> openapi-decycled.yaml @@ -14,6 +15,7 @@ mv .gitignore2 .gitignore rm -rf windmill-api/ || true openapi-python-client generate --config $PWD/python-gen.yaml --path openapi-deref.json +rm -rf openapi/ rm openapi* cp LICENSE windmill-api/