From b37f8547d73a91faeb025d6261fa6241d9b2ea01 Mon Sep 17 00:00:00 2001 From: Ryan Campbell Date: Mon, 17 Jun 2024 16:18:50 +0000 Subject: [PATCH] adding auto_add_downloads for sdk-service --- modules/load_modules.sh | 1 + modules/m_110_debugshim.sh | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/modules/load_modules.sh b/modules/load_modules.sh index b4614e8..d0db274 100755 --- a/modules/load_modules.sh +++ b/modules/load_modules.sh @@ -109,4 +109,5 @@ if [[ "${SPACESDK_CONTAINER}" == "true" ]]; then _collect_container_info # _update_bashrc _convert_options_to_arrays + _auto_add_downloads fi \ No newline at end of file diff --git a/modules/m_110_debugshim.sh b/modules/m_110_debugshim.sh index 50bf2ab..3cb97e2 100644 --- a/modules/m_110_debugshim.sh +++ b/modules/m_110_debugshim.sh @@ -100,5 +100,30 @@ function wait_for_deployment_deletion_by_app_id() { info_log "Pods and volumes successfully terminated for '${appId}'." + info_log "END: ${FUNCNAME[0]}" +} + + + +############################################################ +# Automatically add options to download for debug shims +############################################################ +function _auto_add_downloads() { + info_log "START: ${FUNCNAME[0]}" + + case "${APP_TYPE}" in + "sdk-service") + ARTIFACTS+=("Microsoft.Azure.SpaceFx.Core.${SPACEFX_VERSION}.nupkg") + ARTIFACTS+=("Common.proto") + ;; + esac + + + # TODO: update to scan for dotnet solutions (*.sln) and python files (*.py) to calculate which dev_language we're using + # if [[ "${DEV_LANGUAGE}" == "python" ]]; then + # PACKAGES+=("socat") + # PACKAGES+=("nuget") + # fi + info_log "END: ${FUNCNAME[0]}" } \ No newline at end of file