fix: remove comments while reading YAML files (#1407)

* fix: remove comments while reading YAML files
This commit is contained in:
2026-03-27 14:33:48 +01:00
committed by GitHub
co-authored by GitHub
parent e218f40e10
commit 84bff15b65
2 changed files with 12 additions and 5 deletions
+11 -4
View File
@@ -16,12 +16,17 @@
* Bugfix: Issue selecting the correct variant fixed if 'first_match' was set
as variant.
(#1401)
* Use patchelf 0.14.5 and Lmod 9.1.1
* Enhancemnet: Use patchelf 0.14.5 and Lmod 9.1.1
(#1391, #1393)
* Bugfix: test whether a variant has to be build or not fixed
(#1377)
* Bugfix: Selecting the variant to build on the cmd-line did not work.
(#1371)
### other changes
* Bugfix: remove comments while reading YAML config files
(#1380)
## Version 2.0.5
### modulecmd
@@ -40,13 +45,15 @@
* Enhancemnet: It is now possible to specify a sub-directory relative to
$SRC_DIR used by cmake/autotools in the YAML config file.
(#1382)
* Bugfix: remove comments while reading YAML config files
(#1380)
* Bugfix: test whether a variant has to be build or not fixed
(#1377)
* Bugfix: Selecting the variant to build on the cmd-line did not work.
(#1371)
### other changes
* Bugfix: remove comments while reading YAML config files
(#1380)
## Version 2.0.4
### modulecmd
@@ -65,7 +72,7 @@
* Don't pass an empty string as argument to configure/cmake.
(#1356)
### other changesg
### other changes
* Bash updated to version 5.3.9
(#1366)
* Download URL for Modules fixed.
+1 -1
View File
@@ -146,7 +146,7 @@ yml::read_file(){
local -- yml_fname="$2"
local -- yml_node="$3"
yml_content=$( ${yq} -Ne e "${yml_node}|explode(.)" "${yml_fname}" 2>/dev/null ) || \
yml_content=$( ${yq} -Ne e "... comments=\"\"|${yml_node}|explode(.)" "${yml_fname}" 2>/dev/null ) || \
yml::die_read_file "${yml_fname}"
}