From a2f3455e9a72192b6f7c8a809fbc0a201eb7c349 Mon Sep 17 00:00:00 2001 From: Carlo Goetz Date: Fri, 22 May 2026 11:50:18 +0200 Subject: [PATCH] fix(oas-download): copy version locked api specs to oas/services STACKITSDK-399 --- scripts/download-oas.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/download-oas.sh b/scripts/download-oas.sh index 43a829d4..7e03165 100755 --- a/scripts/download-oas.sh +++ b/scripts/download-oas.sh @@ -61,6 +61,8 @@ EOF fi cd ${work_dir}/${OAS_REPO_NAME} >/dev/null git checkout -q $apiVersion || (echo "version ${apiVersion} does not exist, using main instead" && git checkout -q main) + # overwrite main checkout with version locked checkout + cp -r ${service_dir} ${ROOT_DIR}/oas/services/ # write commit hash to oas_commits file, normalize name first to match service name in sdk-create-pr.sh, normalization # occurs in go/java/python.sh when creating the SDK modules