Merge branch '372-build-system-always-update-modules-config-files' into 'master'

Resolve "build-system: always update modules config files"

Closes #372

See merge request Pmodules/src!385
This commit is contained in:
2024-11-28 13:35:38 +01:00
+3 -2
View File
@@ -1315,7 +1315,9 @@ _build_module() {
local -r yaml_config_file="${modulefile_dir}/.config-${module_version}"
local -- status_yaml_config_file='unchanged'
if [[ -r "${yaml_config_file}" ]]; then
if [[ "${opt_update_modulefiles}" == 'yes' ]]; then
status_yaml_config_file='update'
elif [[ -r "${yaml_config_file}" ]]; then
while read -r key value; do
local -n ref="${key:0:-1}"
ref="${value}"
@@ -1560,7 +1562,6 @@ _build_module() {
${with_modules:+with ${with_modules[@]}} \
"building ..."
init_module_environment
bm::load_overlays
bm::load_build_dependencies
BUILD_ROOT="${PMODULES_TMPDIR}/${module_name}-${module_version}"