File tree Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 3333# Move oas to root level
3434mkdir ${ROOT_DIR} /oas
3535cd ${work_dir}
36- git clone ${OAS_REPO}
36+ git clone ${OAS_REPO} --quiet
3737
3838for service_dir in ${work_dir} /${OAS_REPO_NAME} /services/* ; do
3939 max_version_dir=" "
Original file line number Diff line number Diff line change 7474# Generate SDK for the specified language
7575case " ${LANGUAGE} " in
7676go)
77- echo -e " \nGenerating the Go SDK...\n"
77+ echo -e " \n>> Generating the Go SDK...\n"
7878
7979 source ${LANGUAGE_GENERATORS_FOLDER_PATH} /${LANGUAGE} .sh
8080 # Usage: generate_go_sdk GENERATOR_PATH GIT_HOST GIT_USER_ID [GIT_REPO_ID] [SDK_REPO_URL]
8181 generate_go_sdk ${jar_path} ${GIT_HOST} ${GIT_USER_ID} ${GIT_REPO_ID} ${SDK_REPO_URL}
8282 ;;
8383python)
84- echo -e " \nGenerating the Python SDK...\n"
84+ echo -e " \n>> Generating the Python SDK...\n"
8585
8686 source ${LANGUAGE_GENERATORS_FOLDER_PATH} /${LANGUAGE} .sh
8787 # Usage: generate_python_sdk GENERATOR_PATH GIT_HOST GIT_USER_ID [GIT_REPO_ID] [SDK_REPO_URL]
8888 generate_python_sdk ${jar_path} ${GIT_HOST} ${GIT_USER_ID} ${GIT_REPO_ID} ${SDK_REPO_URL}
8989 ;;
9090* )
91- echo " SDK language not supported."
91+ echo " ! SDK language not supported."
9292 exit 1
9393 ;;
9494esac
Original file line number Diff line number Diff line change @@ -215,5 +215,4 @@ generate_go_sdk() {
215215 cd ${SDK_REPO_LOCAL_PATH}
216216 goimports -w ${SERVICES_FOLDER} /
217217 make sync-tidy
218-
219218}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ rm -rf ${work_dir}/sdk_to_push/.git
6060
6161# Initialize git repo
6262cd ${work_dir} /git_repo
63- git clone ${REPO_URL_SSH} ./
63+ git clone ${REPO_URL_SSH} ./ --quiet
6464git config user.name " ${COMMIT_NAME} "
6565git config user.email " ${COMMIT_EMAIL} "
6666
@@ -108,16 +108,25 @@ for service_path in ${work_dir}/sdk_to_push/services/*; do
108108
109109 # If lint or test fails for a service, we skip it and continue to the next one
110110 make lint skip-non-generated-files=true service=$service || {
111- echo " ! Linting failed for $service "
111+ echo " ! Linting failed for $service . THE UPDATE OF THIS SERVICE WILL BE SKIPPED. "
112112 continue
113113 }
114+
115+ # TODO: Just for testing
116+ echo " >> Adding $service to go.work..."
117+ echo " ## pwd: $( pwd) "
118+ echo " ## car go.work: $( cat go.work) "
119+ echo
120+
121+ go work use -r services/$service
114122 make test skip-non-generated-files=true service=$service || {
115- echo " ! Testing failed for $service "
123+ echo " ! Testing failed for $service . THE UPDATE OF THIS SERVICE WILL BE SKIPPED. "
116124 continue
117125 }
118126
119- git commit -m " Generate $service : $COMMIT_INFO "
120- git push origin " $branch "
127+ echo " >> Actually pushing changes to main for $service service..."
128+ # git commit -m "Generate $service: $COMMIT_INFO"
129+ # git push origin "$branch"
121130 fi
122131 fi
123132done
You can’t perform that action at this time.
0 commit comments