From a45d0039522b6503eb63d6e082d37440d2b13607 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Thu, 6 Aug 2020 11:56:57 -0400 Subject: [PATCH] Update environment_modules_mapping.yml.sample Add a warning about YAML type inference. --- .../sample/environment_modules_mapping.yml.sample | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/galaxy/config/sample/environment_modules_mapping.yml.sample b/lib/galaxy/config/sample/environment_modules_mapping.yml.sample index 8fefec6ad55..689cbd74dda 100644 --- a/lib/galaxy/config/sample/environment_modules_mapping.yml.sample +++ b/lib/galaxy/config/sample/environment_modules_mapping.yml.sample @@ -45,3 +45,18 @@ # to: # name: pipits_pipeline # version: 1.4.0 +# +# +# ## WARNING ## +# +# YAML is a typed language, and types are inferred. Thus, the unquoted version 1.10 (for example) will be read by the YAML parser as the floating +# point number 1.1, which will not match module version 1.10 on your system. To avoid type inference, such values should be quoted with single (') +# or double (") quotes like so: +# +#- from: +# name: bcftools +# version: "1.10" +# to: +# name: biotools/bcftools +# +# Values that cannot be inferred as numbers (such as 1.4.0) do not need to be quoted, but can be, if you prefer.