Merge branch '349-build-system-error-in-reading-variants-in-yaml-config-file' into 'master'

Resolve "build-system: error in reading variants in YAML config file"

Closes #349

See merge request Pmodules/src!345

(cherry picked from commit afe5d0034c)

e6bae349 build-system: bugfix in reading YAML version config

Co-authored-by: gsell <achim.gsell@psi.ch>
This commit is contained in:
2024-08-30 14:24:22 +02:00
parent f7fea8536c
commit fee6b2e33b
+2 -2
View File
@@ -1474,13 +1474,13 @@ build_modules_yaml_v1(){
used_keys
# read (default) config of version if set
local -A vk_config=()
local -- yaml_version_config=''
if [[ -v used_keys['config'] ]]; then
yaml_version_config=$(${yq} '.config' <<<"${yaml_vk_config}" 2>/dev/null)
yaml_version_config=$(${yq} '.config' <<<"${yaml_version_block}" 2>/dev/null)
debug "vk input: ${yaml_version_config}"
fi
# reminder: if YAML input is empty, next line copies defaults to 'vk_config'
local -A vk_config=()
yml::get_config \
yaml_version_config \
vk_config \