diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-03 09:16:30 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-04 08:45:22 +0100 |
commit | 0b67aeebc1c50f3a0ba61c6b1fcc0272071d87f8 (patch) | |
tree | d6bacb15cb3703054e58a0f29eaf547785b1cf23 /config.toml | |
parent | 5b4617aec92fc0f7666162e3a2b8080f87f0258c (diff) |
Add strict script interpolation
This patch adds strict script interpolation, which means that the script
interpolation will result in an error if a variable is referenced that
does not exist.
Before this patch, referencing an absent variable did result in an empty
string, possibly resulting in an error at runtime.
This feature is on by default.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'config.toml')
-rw-r--r-- | config.toml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config.toml b/config.toml index 5804fa0..387deb0 100644 --- a/config.toml +++ b/config.toml @@ -82,6 +82,17 @@ releases = "/tmp/releases" # staging = "/tmp/staging" +# Enable strict script interpolation +# +# If this is set to true, the variable interpolation for the packaging script +# will be done in strict mode. +# Strict mode means, that referencing a variable that does not exist, will +# result in a rendering error. +# +# Default if this setting is missing is true +# +strict_script_interpolation = true + # #### # # Log database configuration |